Why are touch events destroying my Android framerate?

前端 未结 5 1801
傲寒
傲寒 2020-12-25 15:44

I\'m developing a game for Android. It\'s got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen.

While they\'r

5条回答
  •  感情败类
    2020-12-25 16:18

    Read this thread. Basically you want to sleep the event thread since otherwise the system will pump a lot of events (between x,y and pressure there is always some movement going on) that you need to handle.

提交回复
热议问题