mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Convert ticks to 64-bit, added nanosecond precision to the API
Fixes https://github.com/libsdl-org/SDL/issues/5512 Fixes https://github.com/libsdl-org/SDL/issues/6731
This commit is contained in:
@@ -32,4 +32,10 @@ General:
|
||||
* Added SDL_CreateSurface() and SDL_CreateSurfaceFrom() which replace the SDL_CreateRGBSurface*()
|
||||
* Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
|
||||
* Removed 'SDL_GL_CONTEXT_EGL' from OpenGL configuration attributes
|
||||
|
||||
* SDL_GetTicks() now returns a 64-bit value and the tick values should be directly compared instead of using the SDL_TICKS_PASSED macro
|
||||
* Added SDL_GetTicksNS() to return the number of nanoseconds since the SDL library initialized
|
||||
* Added SDL_DelayNS() to specify a delay in nanoseconds, to the highest precision the system will support
|
||||
* Added SDL_WaitEventTimeoutNS() to wait for events with the highest possible precision
|
||||
* Added SDL_SemWaitTimeoutNS() to wait for a semaphore with the highest possible precision
|
||||
* Added SDL_CondWaitTimeoutNS() to wait for a condition variable the highest possible precision
|
||||
* The timestamp member of the SDL_Event structure is now in nanoseconds, filled in with SDL_GetTicksNS()
|
||||
|
||||
Reference in New Issue
Block a user