mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-07 05:26:45 +02:00
Fix a bug where SameBoy would start in "faux turbo mode"
This commit is contained in:
@@ -69,7 +69,7 @@ void GB_timing_sync(GB_gameboy_t *gb)
|
||||
gb->last_sync += target_nanoseconds;
|
||||
}
|
||||
else {
|
||||
if (-time_to_sleep < LCDC_PERIOD * 1200000000LL / GB_get_clock_rate(gb)) {
|
||||
if (time_to_sleep < 0 && -time_to_sleep < LCDC_PERIOD * 1200000000LL / GB_get_clock_rate(gb)) {
|
||||
// We're running a bit too slow, but the difference is small enough,
|
||||
// just skip this sync and let it even out
|
||||
return;
|
||||
|
Reference in New Issue
Block a user