Skip to main content

MAX_CPU_OVERCLOCK

Constant MAX_CPU_OVERCLOCK 

Source
pub const MAX_CPU_OVERCLOCK: u8 = 4;
Expand description

The largest CPU-multiplier overclock the core accepts (v3.1.0, T-CPU-OVERCLOCK).

Nes::set_cpu_overclock clamps to 1..=MAX_CPU_OVERCLOCK, and a movie’s options record outside that range is refused. The bound is the master clock: the CPU divider must stay at least 3 for the read / write split of a cycle (NTSC 12 / 4 = 3), and x4 is already four times the CPU time a frame has.