mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge branch 'gfx-work' into udpnetwork
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user