Possibly Interesting Compiler Flag for SIO2 Users
2 posters
Possibly Interesting Compiler Flag for SIO2 Users
If anyone out there has a game up and running try this and see if your FPS goes up a bit.
- Code:
You may or may not know that ARM has 2 kind of opcodes:
. 16 bit opcodes ("thumb"). Good for power consuption, binary is a bit smaller
. 32 bit opcodes. Faster but consumes more power.
"thumb" can be turned off, thus generating bigger
binaries, consumes more power but are MUCH MUCH faster.
How to disable "thumb compilation" in your project:
1. open your XCode project
2. iterate for all over your targets in case you have more than 1
target. eg: cocos2d static library, chipmunk static library, your game
target
2.1 for each target go to: Project -> Edit Active Target
2.2 Select "All Configurations"
2.3 Search for "thumb"
2.4 You will see "Compile for thumb" -> Disable it
Clean all -> rebuild -> enjoy.
uprise78- Posts : 228
Join date : 2008-10-31
Re: Possibly Interesting Compiler Flag for SIO2 Users
The thumb instructions is already turned off in every SIO2 tutorial as well as the template
Tks for the info. but this have already been taken care of
Cheers,
Tks for the info. but this have already been taken care of
Cheers,
Permissions in this forum:
You cannot reply to topics in this forum