Skip to content

Commit 7f7d463

Browse files
committed
Remove the framebuffer
1 parent b765ba0 commit 7f7d463

File tree

1 file changed

+1
-6
lines changed
  • collector/runtime-benchmarks/nes/src

1 file changed

+1
-6
lines changed

collector/runtime-benchmarks/nes/src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ fn main() {
2626

2727
nes.load_rom(ROM).unwrap();
2828

29-
let mut buffer: Vec<u32> = Vec::new();
30-
buffer.resize(256 * 240, 0);
31-
3229
move || {
3330
// Trigger the autosolve mechanism in the ROM.
3431
for _ in 0..4 {
@@ -50,11 +47,9 @@ fn main() {
5047
// And then just let it run for a while.
5148
for _ in 0..2 * 60 {
5249
nes.execute_until_vblank().unwrap();
53-
nes.framebuffer()
54-
.convert_to_abgr(&nes::Palette::default(), &mut buffer);
5550
}
5651

57-
buffer
52+
nes
5853
}
5954
});
6055
});

0 commit comments

Comments
 (0)