Sprite Kit touchesbegan: delay/lag

我是研究僧i 提交于 2019-12-22 12:19:56

问题


-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {

NSLog(@"touch");
...
}

I have a really simple problem that I can't find any answers to. Most of the time, when I tap the screen, the nslog executes immediately. However, about 1 in 5 times, there is a half second pause before the message displays. I'm making a game and I need the touchesbegan to execute immediately. Can anyone tell me what I'm doing wrong? BTW, the framerate is a mostly constant 60 fps.

来源:https://stackoverflow.com/questions/23047732/sprite-kit-touchesbegan-delay-lag

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!