Disabled QueryPerformanceCounter(), due to problems on Win2K
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40327
This commit is contained in:
parent
b2f4430889
commit
3fa7d61105
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue