Disabled QueryPerformanceCounter(), due to problems on Win2K
authorSam Lantinga
Sun, 31 Mar 2002 03:34:11 +0000
changeset 32672d55d02cb47
parent 325 1b5457c0a8ad
child 327 13fc64213765
Disabled QueryPerformanceCounter(), due to problems on Win2K
src/timer/win32/SDL_systimer.c
     1.1 --- a/src/timer/win32/SDL_systimer.c	Sun Mar 31 02:42:43 2002 +0000
     1.2 +++ b/src/timer/win32/SDL_systimer.c	Sun Mar 31 03:34:11 2002 +0000
     1.3 @@ -57,12 +57,14 @@
     1.4  #ifdef USE_GETTICKCOUNT
     1.5  	start = GetTickCount();
     1.6  #else
     1.7 +#if 0 /* Apparently there are problems with QPC on Win2K */
     1.8  	if (QueryPerformanceFrequency(&hires_ticks_per_second) == TRUE)
     1.9  	{
    1.10  		hires_timer_available = TRUE;
    1.11  		QueryPerformanceCounter(&hires_start_ticks);
    1.12  	}
    1.13  	else
    1.14 +#endif
    1.15  	{
    1.16  		hires_timer_available = FALSE;
    1.17  		timeBeginPeriod(1);		/* use 1 ms timer precision */