mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
Platform fixes and rework ping
This commit is contained in:
@@ -184,7 +184,8 @@ void GraphicalApplication::run()
|
||||
// only update the current time once per frame to gain performance
|
||||
g_clock.update();
|
||||
|
||||
m_backgroundFrameCounter.update();
|
||||
if(m_backgroundFrameCounter.update())
|
||||
g_lua.callGlobalField("g_app", "onFps", m_backgroundFrameCounter.getLastFps());
|
||||
m_foregroundFrameCounter.update();
|
||||
|
||||
int sleepMicros = m_backgroundFrameCounter.getMaximumSleepMicros();
|
||||
|
||||
Reference in New Issue
Block a user