Initial integration
This commit is contained in:
parent
f36533cbd8
commit
bbd970b7ba
1 changed files with 6 additions and 0 deletions
|
|
@ -2126,6 +2126,7 @@ int InitPlatform(void)
|
|||
//----------------------------------------------------------------------------
|
||||
// Get base time from window initialization
|
||||
CORE.Time.base = (double)SDL_GetPerformanceCounter()/(double)SDL_GetPerformanceFrequency();
|
||||
CORE.Time.previous = GetTime();
|
||||
|
||||
#if defined(_WIN32) && SUPPORT_WINMM_HIGHRES_TIMER && !SUPPORT_BUSY_WAIT_LOOP
|
||||
SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "1"); // SDL equivalent of timeBeginPeriod() and timeEndPeriod()
|
||||
|
|
|
|||
Loading…
Reference in a new issue