-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outDS - win32Affects the Win32/Windows backendAffects the Win32/Windows backendS - platform parityUnintended platform differencesUnintended platform differences
Description
Using WaitUntil on Windows may be very inaccurate due to the scheduler time resolution which is by default several ms, currently we just assume 1ms. For real-time applications this leads to laggy behavior when using it for frame timing, usually waking up only with few ms delay.
One option would be to use timeBeginPeriod/timeEndPeriod to dynamically decrease the timer to a better resolution and spin wait the rest of the time. Drawback here is that it may affect battery lifetime.
maroider
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outDS - win32Affects the Win32/Windows backendAffects the Win32/Windows backendS - platform parityUnintended platform differencesUnintended platform differences