pollEvents in loop

This commit is contained in:
patricejiang 2019-06-11 10:16:20 +08:00
parent 0d2b40b6ec
commit 85b72ca88a
No known key found for this signature in database
GPG Key ID: 301C66D10A4E92C3
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ int Application::run()
lastTime = getCurrentMillSecond();
director->mainLoop();
glview->pollEvents();
curTime = getCurrentMillSecond();
if (curTime - lastTime < _animationInterval)