Android.mk - Introjucer performance suggestion

Hi Jules!

A suggestion to you - put this in the Android.mk file generated by the Introjucer, to boost the performance of your generated code!

#Turn-off thumb mode, generate 32-bit code instead!
#This gives a huge performance boost!
LOCAL_ARM_MODE := arm

EDIT: Please also see this build crash for Android: http://www.rawmaterialsoftware.com/viewtopic.php?f=13&t=11712

Hoping this helps!

Best wishes,

Pete

Hi,

sounds interesting. are there any drawbacks enabling this? or min 'droid versions that should be used with this.

thanks,

Tested this flag on my app on a Galaxy S1 and minSdkVersion set to 8, no apparent drawbacks.

I’ll test with a newer device asap to see if there’s a difference in performance.

excellent. I’ll give it a go on my devices here next time i make builds. If i find anything, i’ll report.

FWIW, im dropping API < 11 now (ie drop 2.3.X gingerbread). The old devices are slow and people just complain anyhow :slight_smile:

thanks,

Tested with a Hero 9300 with different minSdkVersion values, no noticable changes in performance here (at least it didn’t solve the app-breaking lag I have when calling the repaint function :frowning: )

Well, seems like I should add it by default. But if anyone spots any issues with it, let me know!

This doesn’t help that much compared to the HUGE fix coming from here: http://www.rawmaterialsoftware.com/viewtopic.php?f=13&t=9839

This enhance a Juce android app (even without openGL) from 3 fps to 60. :slight_smile: (it works with a minimal API of 11. Just use the hardwareAccelerated=“false” tag, it’s magic :slight_smile: )

(edit: fwiw my struggle started here: http://www.rawmaterialsoftware.com/viewtopic.php?f=13&t=10553&p=65945#p64158)

This doesn’t help that much compared to the HUGE fix coming from here: http://www.rawmaterialsoftware.com/viewtopic.php?f=13&t=9839

This enhance a Juce android app (even without openGL) from 3 fps to 60. :slight_smile: (it works with a minimal API of 11. Just use the hardwareAccelerated=“false” tag, it’s magic :slight_smile: )

(edit: fwiw my struggle started here: http://www.rawmaterialsoftware.com/viewtopic.php?f=13&t=10553&p=65945#p64158)[/quote]

Sure, but that fix has already been in the introjucer for a long time now, right?

I’m not totally sure since I was using android api 8, and this does work only for api 11 and later.