Files
JCorrêaandLibretroAdmin eb699ab842 fix(ps3): overlap core rendering with RSX flips while preserving VSync (#20003)
* fix(ps3): overlap core rendering with RSX flips while preserving VSync

Wait for the pending flip before frontend composition so the core can
render while the flip is in progress. Keep flip completion synchronized
when menu or overlay uploads are active.

With VSync enabled, present the cached image for duplicate frames even
when no UI is visible. This prevents emulation from running too fast
when audio sync is disabled.

Cover flip timing and software and hardware frame duplicates with and
without visible UI in the RSX regression tests.

* rsx: keep the core behind the flip with two swapchain images

Max Swapchain Images now chooses the RSX queue depth: two keep the
CPU behind each vsync flip for the lowest input latency, three let
the core run into the pending flip. The setting is shown for RSX.

A vsync dupe redraws the last frame that loaded; a failed upload no
longer becomes the cached frame, and with nothing cached the dupe
leaves the screen as it is instead of presenting a cleared buffer.

rsx_alloc_test models the GCM flip status, so a wait on a flip that
was never reset or queued shows up, and gains flip_latency and
dupe_keeps_image lanes.

* PS3: default to two swapchain images

RSX keeps the core behind each vsync flip with two images, the lowest
input latency; three, letting the core run into the pending flip,
stays available as a setting.

---------

Co-authored-by: LibretroAdmin <[email protected]>
2026-11-06 04:22:36 +01:00
..