mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 17:17:42 +03:00
Fix high CPU usage issue with emscripten demos.
This commit is contained in:
@@ -478,7 +478,9 @@ void App::mainLoop() {
|
||||
firstFrame = false;
|
||||
}
|
||||
} else {
|
||||
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN
|
||||
mWindow->getInput()->waitEvent( Milliseconds( mWindow->hasFocus() ? 16 : 100 ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
if ( mBenchmarkMode && mSecondsCounter.getElapsedTime() >= Seconds( 1 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user