mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-06 09:07:05 +00:00
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:
@@ -135,7 +135,7 @@ Uint64 SDL_GetPerformanceFrequency(void)
|
||||
return SDL_US_PER_SECOND;
|
||||
}
|
||||
|
||||
void SDL_DelayNS(Uint64 ns)
|
||||
void SDL_SYS_DelayNS(Uint64 ns)
|
||||
{
|
||||
int was_error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user