core: Don't specialcase first frame for fake time advancement

This commit is contained in:
Nathan Adams 2023-03-02 00:36:18 +01:00
parent d057e9cacf
commit f3e9a26f22
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ impl Player {
let timer = Instant::now();
self.run_frame();
let elapsed = timer.elapsed().as_millis();
if frame > 0 && elapsed == 0 {
if elapsed == 0 {
// To make sure that `getTimer()` never returns the same value between frames,
// pretend that at least 1ms elapsed if we ran the frame too fast.
self.time_offset += 1;