Commit d6730e3
committed
vs23: calibrateVsync(): repeat until we get a consistent result
The calibration sometimes returned incorrect results, leading to off
frame timings or mistaking of an NTSC system for PAL.
This version keeps sampling the timing until two consecutive measurements
with a difference below 80000 cycles (0.5 ms at 160 MHz) are taken.1 parent faefb64 commit d6730e3
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
194 | 204 | | |
195 | 205 | | |
196 | 206 | | |
| |||
0 commit comments