Commit 3fa7d611 authored by Sam Lantinga's avatar Sam Lantinga

Disabled QueryPerformanceCounter(), due to problems on Win2K

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40327
parent b2f44308
...@@ -57,12 +57,14 @@ void SDL_StartTicks(void) ...@@ -57,12 +57,14 @@ void SDL_StartTicks(void)
#ifdef USE_GETTICKCOUNT #ifdef USE_GETTICKCOUNT
start = GetTickCount(); start = GetTickCount();
#else #else
#if 0 /* Apparently there are problems with QPC on Win2K */
if (QueryPerformanceFrequency(&hires_ticks_per_second) == TRUE) if (QueryPerformanceFrequency(&hires_ticks_per_second) == TRUE)
{ {
hires_timer_available = TRUE; hires_timer_available = TRUE;
QueryPerformanceCounter(&hires_start_ticks); QueryPerformanceCounter(&hires_start_ticks);
} }
else else
#endif
{ {
hires_timer_available = FALSE; hires_timer_available = FALSE;
timeBeginPeriod(1); /* use 1 ms timer precision */ timeBeginPeriod(1); /* use 1 ms timer precision */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment