We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ce6a6 commit 3e6922eCopy full SHA for 3e6922e
src/xrEngine/device.cpp
@@ -296,10 +296,14 @@ void CRenderDevice::on_idle()
296
}
297
298
// Eco render (by alpet)
299
- u32 updateDelta = 10;
+ u32 updateDelta = 0;
300
+
301
if (GEnv.isDedicatedServer)
302
updateDelta = 1000 / g_svDedicateServerUpdateReate;
303
304
+ else if (Device.Paused() || IGame_Persistent::IsMainMenuActive())
305
+ updateDelta = 10;
306
307
if (frameTime < updateDelta)
308
Sleep(updateDelta - frameTime);
309
0 commit comments