This commit is contained in:
Benau
2020-08-31 08:46:02 +08:00
parent 09319c6c73
commit 13fa56d951
2 changed files with 17 additions and 0 deletions

View File

@@ -150,6 +150,15 @@ extern "C" void resume_mainloop()
} // resume_mainloop
#endif
//-----------------------------------------------------------------------------
extern "C" void reset_network_body()
{
// In windows the rendering is paused when out focus, which pauses the
// smooth timer
if (World::getWorld() && RewindManager::isEnabled())
RewindManager::get()->resetSmoothNetworkBody();
} // reset_network_body
//-----------------------------------------------------------------------------
/** Returns the current dt, which guarantees a limited frame rate. If dt is
* too low (the frame rate too high), the process will sleep to reach the