feat: emu slowly draws scanline to pixelbuffer

This commit is contained in:
2021-03-17 19:43:34 -05:00
parent 4663e8c960
commit fb38ef3f68
2 changed files with 103 additions and 21 deletions

View File

@@ -33,7 +33,7 @@ fn main() -> Result<()> {
let ppu = game_boy.get_ppu();
let frame = pixels.get_frame();
ppu.draw(frame);
ppu.copy_to_gui(frame);
if pixels
.render()
@@ -57,7 +57,7 @@ fn main() -> Result<()> {
// Emulation
let _cycles = game_boy.step();
// window.request_redraw();
window.request_redraw();
}
});
}