refactor frame loop

This commit is contained in:
2023-07-09 12:40:52 -05:00
parent a68a4b1764
commit 85f41b872d
2 changed files with 12 additions and 15 deletions
+1 -9
View File
@@ -450,15 +450,7 @@ fn main() {
// Actually run the emulation
if !state.emulation.is_paused {
// We want to keep the emulator running
// as long as we are not at the end of the frame
while !emulator.is_frame_ending() {
emulator.tick()
}
// It takes some amount of cycles to get out of 0 v-count
while !emulator.is_frame_starting() {
emulator.tick()
}
emulator.loop_frame();
}
// Render emulator framebuffer