correct vram dma timing in double speed
This commit is contained in:
parent
ec6a7d02b2
commit
a5c45b48b9
|
@ -522,7 +522,7 @@ where
|
||||||
C: PocketCamera + Send + 'static,
|
C: PocketCamera + Send + 'static,
|
||||||
{
|
{
|
||||||
pub fn increment_timers(&mut self, machine_cycles: usize) {
|
pub fn increment_timers(&mut self, machine_cycles: usize) {
|
||||||
let steps = (machine_cycles as usize) * 4;
|
let steps = machine_cycles * 4;
|
||||||
self.cycle_count += steps;
|
self.cycle_count += steps;
|
||||||
|
|
||||||
self.memory.oam_dma_tick(steps);
|
self.memory.oam_dma_tick(steps);
|
||||||
|
|
|
@ -121,6 +121,10 @@ where
|
||||||
self.set(dest + i, self.get(source + i));
|
self.set(dest + i, self.get(source + i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if self.is_double_speed() {
|
||||||
|
returning * 2
|
||||||
|
} else {
|
||||||
returning
|
returning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue