File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ pub fn count_cycles() {
31
31
32
32
println ! ( "scoring routine most cycles: {}" , highest) ;
33
33
34
- // use crate::video;
35
-
36
34
// check clock cycles frames in each mode
37
35
38
36
let mut emu = util:: emulator ( None ) ;
@@ -78,7 +76,7 @@ pub fn count_cycles() {
78
76
emu. memory . iram_raw [ labels:: get ( "autorepeatY" ) as usize ] = 0 ;
79
77
80
78
for _ in 0 ..45 {
81
- let cycles = cycles_to_hblank ( & mut emu) ;
79
+ let cycles = cycles_to_vblank ( & mut emu) ;
82
80
83
81
if cycles > highest {
84
82
highest = cycles;
@@ -93,7 +91,7 @@ pub fn count_cycles() {
93
91
94
92
}
95
93
96
- fn cycles_to_hblank ( emu : & mut NesState ) -> u32 {
94
+ fn cycles_to_vblank ( emu : & mut NesState ) -> u32 {
97
95
let vblank = labels:: get ( "verticalBlankingInterval" ) as usize ;
98
96
let mut cycles = 0 ;
99
97
let mut done = false ;
You can’t perform that action at this time.
0 commit comments