Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possibilities to reduce power consumption with cocos2d apps

I made a board game with includes just some little animations. I reduced the fps from 60 to 30 to reduce the processor load. But the device still gets very warm. Another application made without cocos2d is not heating it so much. Are there any methods to calm the iPhone down? The device state is as follows:

  • Wifi is always enabled
  • The app uses gamecenter
  • GPS is inactive
  • fps is always on 30
  • I use cocos2d-iphone as engine
like image 598
zeiteisen Avatar asked Jun 06 '11 14:06

zeiteisen


1 Answers

It might be worth experimenting with different director types, e.g. kCCDirectorTypeNSTimer, and seeing if that helps at all. Those will have the biggest effect on the main loop of the game.

You should also spend some time with Instruments if you've not already, as that will show you where the CPU is spending its time and give you some hints on where you could ease things up.

like image 83
Thom Avatar answered Nov 15 '22 01:11

Thom