ed0816 Posted September 20, 2015 Report Share Posted September 20, 2015 (edited) HI in order to compile a fresh version of the source from today, I had to copy the patches in the source/spidermonkey/build.sh file into the osx/build-osx-libs.sh file. I am running the latest version of the xcode command line tools and cmake on 10.10.5 and followed the normal build instructions for osx.By default build.sh is never called, and thus the patches it contains are never executed, and the compile fails with errors. This took me quite some time to figure out - is that a bug, or an undocumented feature? Any way around that?cheersetzard Edited September 20, 2015 by ed0816 1 Quote Link to comment Share on other sites More sharing options...
Yves Posted September 21, 2015 Report Share Posted September 21, 2015 Hello EtzardThank you for reporting! You are right, it's a bug.Would you mind testing the attached patch?Please make sure to revert your fix before applying the patch and run build-osx-libs.sh with --force-rebuild.I don't have a Mac and can't test, unfortunately.apply_spidermonkey_patches_on_osx_v1.0.diff Quote Link to comment Share on other sites More sharing options...
ed0816 Posted September 22, 2015 Author Report Share Posted September 22, 2015 Hi Primusthe patch is working fine on my mac.fyi - It might make sense to add in some Mac.os.x Q&A to have all windows closed, as otherwise the script will break (.DS files cannot be deleted).btw - after I turned on all optimizations in Clang on, the frame rates became quite impressive (>80 frames/sec for medium sized scenarios). Yet, the mail loop seems to know no idle and/or timers so that at least on the mac 100% CPU is burned even if no units are moving, etc. Would you know the name for the main loops where I could tweak that myself?CheersEd Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 22, 2015 Report Share Posted September 22, 2015 Hi Primusthe patch is working fine on my mac.fyi - It might make sense to add in some Mac.os.x Q&A to have all windows closed, as otherwise the script will break (.DS files cannot be deleted).btw - after I turned on all optimizations in Clang on, the frame rates became quite impressive (>80 frames/sec for medium sized scenarios). Yet, the mail loop seems to know no idle and/or timers so that at least on the mac 100% CPU is burned even if no units are moving, etc. Would you know the name for the main loops where I could tweak that myself?CheersEdHey, Primus is the title, Yves is the name. I think you might want to have a look at main.cpp ?If you come up with tweaks, it would be nice that you create a ticket on trac, and submit your optimizations http://trac.wildfiregames.com/See the programmer subsection on that page Quote Link to comment Share on other sites More sharing options...
Yves Posted September 24, 2015 Report Share Posted September 24, 2015 Thanks for testing, I've committed the fix in r17067. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.