Dealing with iPhone OS background processes

Discussion in 'Public Game Developers Forum' started by emitcollect, Jul 24, 2009.

  1. Anders

    Anders Well-Known Member

    Feb 3, 2009
    1,634
    0
    0
    Co-owner and CTO at Color Monkey
    Sweden
    You should profile your app to see where you need to optimize. If the CPU is hogged, then yes turning off THUMB can make it slightly faster, but note that it can actually make it slower in some cases (as more program code needs to be transfered and due to limited memory bandwidth). You will also increase increase file size as the 32 bit instructions are obviously bigger than 16 bit instructions. If the GPU is hogged I doubt it will make any difference at all.

    If you don't see any performance increase, I'd recommend having THUMB on.
     
  2. GlennX

    GlennX Well-Known Member

    May 10, 2009
    761
    0
    0
    UK
    That makes a lot of sense. I turned Thumb off when my app was just a landscape and the LOD code was a lot less efficient, it made a huge difference. More recently I tried turning it back on and then off again and noticed a much less pronounced improvement. It's still a win for my game though.
     
  3. Anders

    Anders Well-Known Member

    Feb 3, 2009
    1,634
    0
    0
    Co-owner and CTO at Color Monkey
    Sweden
    Yup. Since it's so easy to turn on and off it's a simple thing to test.
     
  4. emitcollect

    emitcollect Well-Known Member

    Jul 22, 2009
    61
    0
    0
    #24 emitcollect, Aug 4, 2009
    Last edited: Aug 20, 2009
    Tried out the new refresh callback in 3.1. Works beautifully.
     
  5. emitcollect

    emitcollect Well-Known Member

    Jul 22, 2009
    61
    0
    0
    #25 emitcollect, Aug 5, 2009
    Last edited: Aug 20, 2009
    Reducing the size of one of my functions seems to have helped. I'll still get stutters using threads on a 1G, but a timer approach works pretty flawlessly (albeit with some very minor fluctuations in framerate). The refresh callback in 3.1 gives rock solid results.
     
  6. Anders

    Anders Well-Known Member

    Feb 3, 2009
    1,634
    0
    0
    Co-owner and CTO at Color Monkey
    Sweden
    What is this new refresh callback? What is it called, how is it used etc?
     
  7. Anders

    Anders Well-Known Member

    Feb 3, 2009
    1,634
    0
    0
    Co-owner and CTO at Color Monkey
    Sweden
    CADisplayLink :p
     

Share This Page