Merge branch 'gfx-work' into udpnetwork

This commit is contained in:
milek7
2019-01-29 23:49:29 +01:00
5 changed files with 22 additions and 6 deletions

View File

@@ -268,10 +268,12 @@ eu07_application::run() {
screenshot_man.make_screenshot();
}
Timer::subsystem.mainloop_total.stop();
if (m_network)
m_network->poll();
auto frametime = Timer::subsystem.mainloop_total.stop();
if (Global.minframetime.count() != 0.0f && (Global.minframetime - frametime).count() > 0.0f)
std::this_thread::sleep_for(Global.minframetime - frametime);
}
die: