core: Don't specialcase first frame for fake time advancement
This commit is contained in:
parent
d057e9cacf
commit
f3e9a26f22
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue