Delay with touch events

前端 未结 4 417
逝去的感伤
逝去的感伤 2021-01-14 22:36

We have an app in AppStore Bust~A~Spook we had an issue with. When you tap the screen we use CALayer to find the position of all the views during their animation and if you

4条回答
  •  既然无缘
    2021-01-14 22:51

    Delayed touches usually indicates a CPU overload. Using a NSTimer for frame-to-frame based action is prone to interfering with the touch handling.

    If that's the case for your app, then my advice is very simple: OpenGL.

提交回复
热议问题