Possibly Interesting Compiler Flag for SIO2 Users

Go down

Possibly Interesting Compiler Flag for SIO2 Users

Post  uprise78 on Tue Dec 09, 2008 1:31 pm

If anyone out there has a game up and running try this and see if your FPS goes up a bit.

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
  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.


Posts : 228
Join date : 2008-10-31

View user profile

Back to top Go down

Re: Possibly Interesting Compiler Flag for SIO2 Users

Post  sio2interactive on Tue Dec 09, 2008 4:28 pm

The thumb instructions is already turned off in every SIO2 tutorial as well as the template Wink

Tks for the info. but this have already been taken care of Wink


Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum