diff src/timer/win32/SDL_systimer.c @ 326:72d55d02cb47

Disabled QueryPerformanceCounter(), due to problems on Win2K
author Sam Lantinga <slouken@libsdl.org>
date Sun, 31 Mar 2002 03:34:11 +0000
parents f6ffac90895c
children a6fa62b1be09
line wrap: on
line diff
--- 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 */