Fixed a bug where SameBoy freeze for a moment after leaving turbo mode
This commit is contained in:
parent
d72807dd67
commit
65b0dcb2c5
@ -49,7 +49,10 @@ bool GB_timing_sync_turbo(GB_gameboy_t *gb)
|
||||
|
||||
void GB_timing_sync(GB_gameboy_t *gb)
|
||||
{
|
||||
if (gb->turbo) return;
|
||||
if (gb->turbo) {
|
||||
gb->cycles_since_last_sync = 0;
|
||||
return;
|
||||
}
|
||||
/* Prevent syncing if not enough time has passed.*/
|
||||
if (gb->cycles_since_last_sync < LCDC_PERIOD / 4) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user