Improve sleep primitive #107

Closed
opened 2026-02-03 13:59:10 +00:00 by Tearnote · 1 comment
Tearnote commented 2026-02-03 13:59:10 +00:00 (Migrated from codeberg.org)

Current thread sleep, used mostly for low latency mode, relies on C++ thread sleep being reliable. Unfortunately, Windows exists. A workaround is to sleep for 2ms less than requested, then busyloop for the rest.

Current thread sleep, used mostly for low latency mode, relies on C++ thread sleep being reliable. Unfortunately, Windows exists. A workaround is to sleep for 2ms less than requested, then busyloop for the rest.
Tearnote commented 2026-02-20 18:07:19 +00:00 (Migrated from codeberg.org)

Fixed in 2d416ba92d

Fixed in 2d416ba92d24ef2fe6a0e4b2ffbfef6b985aaff4
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Tearnote/Playnote#107
No description provided.