FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Possibly Interesting Compiler Flag for SIO2 Users

2 posters

Go down

Possibly Interesting Compiler Flag for SIO2 Users Empty Possibly Interesting Compiler Flag for SIO2 Users

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

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

Back to top Go down

Possibly Interesting Compiler Flag for SIO2 Users Empty Re: Possibly Interesting Compiler Flag for SIO2 Users

Post  sio2interactive 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

Cheers,
sio2interactive
sio2interactive

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

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