git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit f1e5e041983f1433eebdb3c8a55c328d56467ca5
parent d0d39015eefb4aec0fe28c58276a046623501639
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu, 25 Nov 2021 21:46:51 +0200

...even when timekeeping is disabled

Diffstat:
MCore/timing.c10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/Core/timing.c b/Core/timing.c @@ -95,6 +95,16 @@ bool GB_timing_sync_turbo(GB_gameboy_t *gb) void GB_timing_sync(GB_gameboy_t *gb) { + if (gb->cycles_since_last_sync < LCDC_PERIOD / 3) return; + gb->cycles_since_last_sync = 0; + + if (gb->turbo) { + gb->cycles_since_last_sync = 0; + if (gb->update_input_hint_callback) { + gb->update_input_hint_callback(gb); + } + return; + } } #endif

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.