How make a game loop on the iPhone without using NSTimer

前端 未结 5 1560
挽巷
挽巷 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:13

    Regarding CADisplayLink and the Doom for iPhone article by Fabien, I emailed Fabien and I think the best option is subjective. Performance-wise DisplayLink and triple buffering should be the same, but DisplayLink is only available on > OS 3.1. So that should be your determining factor.

提交回复
热议问题