Mercurial > sdl-ios-xcode
changeset 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 | 1b5457c0a8ad |
children | 13fc64213765 |
files | src/timer/win32/SDL_systimer.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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 */