Repository navigation
Commit cd330fe
committed
fix(video): annotate last_present type and record present time
The FPS pacer in the video playback loop compiled only by accident;
`last_present` had no type annotation and was never assigned, so the
`--max-fps` pacing never activated. Give it a concrete type and stamp it
after each presented frame so the limit actually throttles.1 parent d6d7774 commit cd330fe
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
1256 | | - | |
| 1256 | + | |
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | | - | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1340 | 1342 | | |
1341 | 1343 | | |
1342 | 1344 | | |
| |||
0 commit comments