LIJI32 / SameBoy

Game Boy and Game Boy Color emulator written in C
https://sameboy.github.io/
Other
1.64k stars 207 forks source link

Changing Clock speed (Over/Underclocking) #316

Open INFU-AV opened 3 years ago

INFU-AV commented 3 years ago

Would it be possible to adjust clock speed of emulated hardware? Not just speed of emulation but whole core/hardware, together with pitch range going up(overclocked)/down(underclocked) behaviour (so for example we could underclock the gameboy to achieve lower notes on Pulse/WAV channels)?

LIJI32 commented 3 years ago

It already exists, but each frontend implements it differently. The libretro core doesn't expose it AFAIK, but the SDL and Cocoa frontends have a "Slow-motion" key you can map which basically underclocks to 50%. Also, in the Cocoa frontend, if you use a controller and map turbo or slow motion to an analog button (e.g. the shoulder buttons of a GC controller), they will overclock and underclock the system in an analog manner.