mirror of
https://github.com/yawut/SDL.git
synced 2026-07-18 17:01:19 -05:00
Disabled QueryPerformanceCounter(), due to problems on Win2K
This commit is contained in:
parent
3ffc2c0a7d
commit
070ded6c1b
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user