-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_set_rtc_mode
Lior Halphon edited this page Nov 30, 2024
·
3 revisions
typedef enum {
GB_RTC_MODE_SYNC_TO_HOST,
GB_RTC_MODE_ACCURATE,
} GB_rtc_mode_t;
void GB_set_rtc_mode(GB_gameboy_t *gb, GB_rtc_mode_t mode);
In timing.h
Specifies how the emulator instance emulates a Real-Time Clock inside an emulated cartridge:
-
GB_RTC_MODE_SYNC_TO_HOST
: The RTC follows the time on the host's clock. Even when the emulator instance is overclocked, underclocked, set to turbo mode, or paused, the in-game RTC will always advance in one real-world-second intervals. -
GB_RTC_MODE_ACCURATE
: The RTC timings are accurately emulated. Pausing or changing the speed of the instance will also pause or change the speed of the RTC.
GB_set_rtc_mode
is thread-safe and can be called from any thread and context.