From 1e43a9493e939d30a95dc430df94e4ea2540d9e9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 31 Mar 2002 03:34:11 +0000 Subject: [PATCH] Disabled QueryPerformanceCounter(), due to problems on Win2K --- src/timer/win32/SDL_systimer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/timer/win32/SDL_systimer.c b/src/timer/win32/SDL_systimer.c index 320327251..11fa67f7e 100644 --- a/src/timer/win32/SDL_systimer.c +++ b/src/timer/win32/SDL_systimer.c @@ -57,12 +57,14 @@ void SDL_StartTicks(void) #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 */