Disabled QueryPerformanceCounter(), due to problems on Win2K
authorSam Lantinga <slouken@libsdl.org>
Sun, 31 Mar 2002 03:34:11 +0000
changeset 326 72d55d02cb47
parent 325 1b5457c0a8ad
child 327 13fc64213765
Disabled QueryPerformanceCounter(), due to problems on Win2K
src/timer/win32/SDL_systimer.c
--- a/src/timer/win32/SDL_systimer.c	Sun Mar 31 02:42:43 2002 +0000
+++ b/src/timer/win32/SDL_systimer.c	Sun Mar 31 03:34:11 2002 +0000
@@ -57,12 +57,14 @@
 #ifdef USE_GETTICKCOUNT
 	start = GetTickCount();
 #else
+#if 0 /* Apparently there are problems with QPC on Win2K */
 	if (QueryPerformanceFrequency(&hires_ticks_per_second) == TRUE)
 	{
 		hires_timer_available = TRUE;
 		QueryPerformanceCounter(&hires_start_ticks);
 	}
 	else
+#endif
 	{
 		hires_timer_available = FALSE;
 		timeBeginPeriod(1);		/* use 1 ms timer precision */