From f053285852be89ef4238b1a6682a63233501f342 Mon Sep 17 00:00:00 2001 From: thilo Date: Fri, 18 Aug 2006 01:50:51 +0000 Subject: Fix 100% CPU usage on idle dedicated servers. git-svn-id: svn://svn.icculus.org/quake3/trunk@850 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/qcommon/common.c') diff --git a/code/qcommon/common.c b/code/qcommon/common.c index d1d40a9..e861b51 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -2660,9 +2660,9 @@ int Com_ModifyMsec( int msec ) { // dedicated servers don't want to clamp for a much longer // period, because it would mess up all the client's views // of time. - if ( msec > 500 ) { + if (com_sv_running->integer && msec > 500) Com_Printf( "Hitch warning: %i msec frame time\n", msec ); - } + clampTime = 5000; } else if ( !com_sv_running->integer ) { -- cgit v1.2.3