mirror of
https://github.com/libretro/parallel-dc.git
synced 2026-11-10 17:26:21 -10:00
fa34742ec0087e9c502eefb8d11acaefec43b088
retro_get_system_av_info bucketed timing.fps to 60.00 (VGA) / 59.94 (NTSC) / 50.00 (PAL) from a pixel-clock table whose constants didn't even reconcile with those figures, and the VGA case was wrong: Dreamcast VGA runs at 59.94, not 60 (27MHz / (858*525) = 59.9401). It also missed that 240p NTSC is ~59.83, not 59.94, and NAOMI boards run faster still. The scheduler already computes the exact frame period in CalculateSync from the SPG registers the game programs (Line_Cycles * pvr_numscanlines). Expose it as spg_get_refresh_rate() -- pixel_clock / ((hcount+1) * (vcount+1)) -- and report that. timing.fps now equals the rate frames and audio are actually produced at, per mode and per game: 59.94 for VGA/480i, ~59.83 for 240p NTSC, 50.00 for PAL 480i, ~49.92 for PAL 240p, and the correct higher rates for NAOMI. Matches the hardware-derived values confirmed upstream (flyinghead/flycast PR #2033) and keeps frontend frame pacing in step with the core, pairing with the per-frame audio flush. Falls back to 60 before CalculateSync has run.
- Backport https://github.com/flyinghead/flycast/commit/889fc8256d720ae15484c8517537e1b19152bf6d#diff-fc1d651a6c7be7577e1a14b6e860c10115ef82091c1439ca291e945ba55a4220
THIS IS A DEPRECATED FORK
The official libretro core has been built upstream from https://github.com/flyinghead/flycast since 2022, this libretro fork is outdated, deprecated and not supposed to be used anymore.
Note that some 3rd party projects might still be using this outdated fork nonetheless (ex. lr-flycast in RetroPie is still using this deprecated fork in 2026, while the updated one is lr-flycast-dev)
Flycast
Flycast is a multi-platform Sega Dreamcast emulator.
Disclaimer
All code contritbuted to this fork is not bound by the Individual Contributor License Agreement of the upstream repository (https://github.com/reicast/reicast-emulator) and shall not be considered as a contribution to the upstream repository.
Description
ParaLLEl-DC libretro core: Sega Dreamcast, Naomi, Naomi 2 and Atomiswave emulation for RetroArch. Derived from Flycast by flyinghead (https://github.com/flyinghead/flycast).
59 MiB
0 Stars
1 Watchers
0 Forks
Languages
C++
61.2%
C
34%
Python
2%
Shell
1.5%
GLSL
0.3%
Other
0.8%