How make a game loop on the iPhone without using NSTimer

前端 未结 5 1621
挽巷
挽巷 2021-01-31 23:53

In order to cleanly port my game to the iPhone, I\'m trying to make a game loop that doesn\'t use NSTimer.

I noticed in some sample code that, if using NSTimer, you\'d s

5条回答
  •  滥情空心
    2021-02-01 00:27

    While using CADisplayLink is a really good alternative for 3.1 based games,
    anything using "Timer" is a really bad idea.

    The best approach is the good old "tripple buffering" to decouple the GPU work.

    Fabien has a very good explanation in his Doom Iphone review:
    http://fabiensanglard.net/doomIphone/

提交回复
热议问题