[quake3-commits] r1832 - trunk/code/sys

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jan 31 15:32:00 EST 2011


Author: thilo
Date: 2011-01-31 15:32:00 -0500 (Mon, 31 Jan 2011)
New Revision: 1832

Modified:
   trunk/code/sys/sys_win32.c
Log:
Only adjust timer resolution for clients


Modified: trunk/code/sys/sys_win32.c
===================================================================
--- trunk/code/sys/sys_win32.c	2011-01-31 20:23:05 UTC (rev 1831)
+++ trunk/code/sys/sys_win32.c	2011-01-31 20:32:00 UTC (rev 1832)
@@ -41,7 +41,9 @@
 // Used to determine where to store user-specific files
 static char homePath[ MAX_OSPATH ] = { 0 };
 
+#ifndef DEDICATED
 static UINT timerResolution = 0;
+#endif
 
 #ifdef __WIN64__
 void Sys_SnapVector( float *v )
@@ -698,10 +700,10 @@
 */
 void Sys_PlatformInit( void )
 {
+#ifndef DEDICATED
 	TIMECAPS ptc;
 	UINT res;
 	
-#ifndef DEDICATED
 	const char *SDL_VIDEODRIVER = getenv( "SDL_VIDEODRIVER" );
 
 	if( SDL_VIDEODRIVER )
@@ -712,7 +714,6 @@
 	}
 	else
 		SDL_VIDEODRIVER_externallySet = qfalse;
-#endif
 
 	if(timeGetDevCaps(&ptc, sizeof(ptc)) == MMSYSERR_NOERROR)
 	{
@@ -728,6 +729,7 @@
 	}
 	else
 		timerResolution = 0;
+#endif
 }
 
 /*
@@ -739,8 +741,10 @@
 */
 void Sys_PlatformExit( void )
 {
+#ifndef DEDICATED
 	if(timerResolution)
 		timeEndPeriod(timerResolution);
+#endif
 }
 
 /*



More information about the quake3-commits mailing list