Don't throttle fps if hosting a multiplayer game

This commit is contained in:
Robert Beckebans 2025-02-04 17:30:03 +01:00
parent ba89335383
commit 50f9a28cd6

View file

@ -643,7 +643,7 @@ void idCommonLocal::Frame()
frameTiming.finishSyncTime = Sys_Microseconds(); frameTiming.finishSyncTime = Sys_Microseconds();
// RB: slow down engine in background so it does not eat up so many resources along other 3D tools // RB: slow down engine in background so it does not eat up so many resources along other 3D tools
if( !com_activeApp.GetBool() /* and not VR */ ) if( !com_activeApp.GetBool() && !IsServer() /* and not VR */ )
{ {
const float backgroundEngineHz = 15.0f; const float backgroundEngineHz = 15.0f;
com_engineHz_denominator = 100LL * backgroundEngineHz; com_engineHz_denominator = 100LL * backgroundEngineHz;