Jump to content

  • Log In with Google      Sign In   
  • Create Account

Android NDK performance


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Serapth   Crossbones+   -  Reputation: 5703

Like
0Likes
Like

Posted 24 April 2013 - 01:07 PM

I've recently been working quite a bit in Haxe and I've noticed something really weird.  The development machine I am using is a 2012 Macbook Air, dual booting Windows 7 and MacOS 10.8.2.  I've been working about equally in both platforms and noticed something rather stunning...

 

The Android NDK ( C++ dev kit ) is about 3x slower to compile on MacOS than it is on Windows.  This seems really shocking to me as I believe the NDK requires a bolt on OS extension ( Cygwin ), while MacOS obviously has a native terminal.  I would obviously think gcc on MacOS would be better optimizied than the Windows version...

 

At this point I am simply curious what is going on... anyone else working with the Android NDK...  have you noticed the same speed differences, and is there any way to make Gcc on MacOS well... faster?



Sponsor:

#2 frob   Moderators   -  Reputation: 22693

Like
0Likes
Like

Posted 24 April 2013 - 03:12 PM

Disable the optimizer and try again.

 

There are known issues with the optimizer performance.  Sadly the optimizer will often churn on a file and then actually produce worse-performing binaries than the non-optimized build.


Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I write about assorted stuff.


#3 Serapth   Crossbones+   -  Reputation: 5703

Like
0Likes
Like

Posted 24 April 2013 - 03:28 PM

Do you mean in terms of -O command line switches?

If so, that may not be an option in this case as its actually NME that is invoking the compiler in this case.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS