Skip to content

libretro: add selectable system-clock RTC source - #286

Open
duonqfs wants to merge 1 commit into
libretro:masterfrom
duonqfs:codex/rtc-wall-clock-option
Open

libretro: add selectable system-clock RTC source#286
duonqfs wants to merge 1 commit into
libretro:masterfrom
duonqfs:codex/rtc-wall-clock-option

Conversation

@duonqfs

@duonqfs duonqfs commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Adds an RTC Time Source core option:

  • Deterministic: preserves the existing baseline-plus-frame-counter behavior.
  • System Clock: reads the host wall clock, including time elapsed while
    content is suspended or not running.

Deterministic remains the default to preserve existing savestate, movie,
and netplay behavior.

Motivation

Always using deterministic emulated time is useful for reproducibility, but
time-based cartridge events do not advance while the emulator is stopped.
This is particularly noticeable on handheld devices used for Pokémon games.

This is related to libretro/gpsp#275. It does not change RTC cartridge autodetection;
the existing RTC Support option still controls whether RTC hardware is enabled.

Testing

  • System-clock behavior tested through the NextUI on TRIMUI Brick Pro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant