Skip to content
Snippets Groups Projects
Verified Commit 8ee09c56 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: improved visual frequency computation

parent 3d0c0ab4
No related branches found
No related tags found
1 merge request!29Support for Libretro
Pipeline #3080 passed
...@@ -295,7 +295,9 @@ pub extern "C" fn retro_run() { ...@@ -295,7 +295,9 @@ pub extern "C" fn retro_run() {
let channels = emulator.audio_channels(); let channels = emulator.audio_channels();
let mut counter_cycles = 0_u32; let mut counter_cycles = 0_u32;
let cycle_limit = 4194304 / 60; //@TODO this is super tricky let cycle_limit = (GameBoy::CPU_FREQ as f32 * emulator.multiplier() as f32
/ GameBoy::VISUAL_FREQ)
.round() as u32;
loop { loop {
// limits the number of ticks to the typical number // limits the number of ticks to the typical number
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment