libretroadmin fa34742ec0 av_info: report the actual SPG-derived refresh rate
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.
2026-07-03 21:44:45 +02:00
2020-03-26 18:11:40 +01:00
2016-12-04 02:16:47 +01:00
2020-03-26 18:11:40 +01:00
2021-11-09 18:24:08 +01:00
2017-10-24 13:32:18 -04:00
2013-12-19 19:10:14 +02:00
2015-12-18 08:06:45 +01:00
2015-10-18 03:56:18 +02:00
2026-04-30 07:37:22 +02:00

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.

S
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).
Readme GPL-2.0
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%