diff --git a/src/framework/engine.cpp b/src/framework/engine.cpp index d7516a2b..c5a77f28 100644 --- a/src/framework/engine.cpp +++ b/src/framework/engine.cpp @@ -76,12 +76,12 @@ void Engine::run() lastFrameTicks = ticks; // render only when visible - if(Platform::isWindowVisible()) { + //if(Platform::isWindowVisible()) { render(); // swap buffers Platform::swapBuffers(); - } + //} } lastFrameTicks = 0; diff --git a/src/framework/win32platform.cpp b/src/framework/win32platform.cpp index 408ab1cb..1d834951 100644 --- a/src/framework/win32platform.cpp +++ b/src/framework/win32platform.cpp @@ -62,6 +62,9 @@ void Platform::init(const char *appName) if(!RegisterClassA(&wc)) fatal("Failed to register the window class."); + + // force first tick + Platform::getTicks(); } void Platform::terminate()