Repository navigation
Commit a72d63a
Document the MSVC timer resolution caveat of Tree::sleep (#1257)
Tree::sleep() waits on a std::condition_variable. On MSVC the wait_for()
timeout is rounded up to the system timer resolution (about 15.6 ms,
microsoft/STL#2173), so a 1 ms sleep can take ~16 ms and
tickWhileRunning() cannot run much faster than 64 Hz on Windows.
Add a note to the Tree::sleep() documentation, with the workaround from
the STL issue thread (timeBeginPeriod(1)) that needs no library change.
Fixes #1134
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent e3e2fc4 commit a72d63a
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
0 commit comments