Skip to content

Commit

Permalink
Disabled QueryPerformanceCounter(), due to problems on Win2K
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 31, 2002
1 parent 874a585 commit 1e43a94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/timer/win32/SDL_systimer.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 1e43a94

Please sign in to comment.