Skip to content

Commit 266e522

Browse files
committed
tweaks
1 parent 6433839 commit 266e522

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/src/cycle_count.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ pub fn count_cycles() {
3131

3232
println!("scoring routine most cycles: {}", highest);
3333

34-
// use crate::video;
35-
3634
// check clock cycles frames in each mode
3735

3836
let mut emu = util::emulator(None);
@@ -78,7 +76,7 @@ pub fn count_cycles() {
7876
emu.memory.iram_raw[labels::get("autorepeatY") as usize] = 0;
7977

8078
for _ in 0..45 {
81-
let cycles = cycles_to_hblank(&mut emu);
79+
let cycles = cycles_to_vblank(&mut emu);
8280

8381
if cycles > highest {
8482
highest = cycles;
@@ -93,7 +91,7 @@ pub fn count_cycles() {
9391

9492
}
9593

96-
fn cycles_to_hblank(emu: &mut NesState) -> u32 {
94+
fn cycles_to_vblank(emu: &mut NesState) -> u32 {
9795
let vblank = labels::get("verticalBlankingInterval") as usize;
9896
let mut cycles = 0;
9997
let mut done = false;

0 commit comments

Comments
 (0)