Skip to content

Commit 3e6922e

Browse files
committed
Eco render only in main menu
1 parent 06ce6a6 commit 3e6922e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/xrEngine/device.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,14 @@ void CRenderDevice::on_idle()
296296
}
297297

298298
// Eco render (by alpet)
299-
u32 updateDelta = 10;
299+
u32 updateDelta = 0;
300+
300301
if (GEnv.isDedicatedServer)
301302
updateDelta = 1000 / g_svDedicateServerUpdateReate;
302303

304+
else if (Device.Paused() || IGame_Persistent::IsMainMenuActive())
305+
updateDelta = 10;
306+
303307
if (frameTime < updateDelta)
304308
Sleep(updateDelta - frameTime);
305309

0 commit comments

Comments
 (0)