Commit 2fb1078
committed
Fix interpolating clocks' drift recovery being frame rate dependent
This should largely alleviate any remaining concerns of stutters due to
ppy/osu#22488.
In testing, on both windows and macOS the delay for bass to start
playback is around 10 ms. If there is no interpolation, this would cause
a 10 ms stutter.
I've confirmed that interpolation *does* alleviate this already. The
problem is that depending on the update frame rate, it doesn't do a
great job.
With this change, the drift is spread out over multiple frames, which
should make the issue much less visible to an end user (gameplay will
run slightly slower for a brief period rather than outright stopping).1 parent 0722f55 commit 2fb1078
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| |||
0 commit comments