SDL_DelayNS() will attempt to sleep exactly the requested amount of time
This provides a highly accurate sleep function for your application, although you are still subject to being switched out occasionally. Fixes https://github.com/libsdl-org/SDL/issues/10210
This commit is contained in:
@@ -66,7 +66,7 @@ Uint64 SDL_GetPerformanceFrequency(void)
|
||||
return (Uint64)frequency.QuadPart;
|
||||
}
|
||||
|
||||
void SDL_DelayNS(Uint64 ns)
|
||||
void SDL_SYS_DelayNS(Uint64 ns)
|
||||
{
|
||||
/* CREATE_WAITABLE_TIMER_HIGH_RESOLUTION flag was added in Windows 10 version 1803.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user