fix(libSceVideoOut): fall back to 59.94 Hz when display drops below 120 Hz #8095
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8095"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Unkown607 on 2026-10-19T21:23:37Z.
What
When a title has configured 119.88 Hz output (mode 15) and the window moves to a display below 120 Hz, the presenter aborted with
std::terminate. This replaces the abort with a graceful fallback.How
In
processFlip, therequire()that threw whenSupportsHighFrameRate()returned false while mode 15 was active is replaced with:outputModetoVIDEO_OUT_OUTPUT_MODE_DEFAULT(mode 1)VIDEO_OUT_EVENT_SET_MODEso the title is notifiedAfter the fallback:
sceVideoOutGetOutputStatusreportsrefreshRate3 (59.94 Hz)sceVideoOutGetResolutionStatusreportsrefreshRate3sceVideoOutIsOutputSupported(mode=15)returnsVIDEO_OUT_ERROR_UNSUPPORTED_OUTPUT_MODEsceVideoOutConfigureOutput(mode=15)succeeds again once the window is back on a >= 120 Hz displayRationale
A PS5 connected to a 120 Hz TV cannot keep outputting 120 Hz when the TV is replaced by a 60 Hz display or the user disables 120 Hz output in Settings. HDMI output mode renegotiation requires a fallback to a compatible mode. Aborting the title is not what the console does in any display-change scenario.
The console's exact API-level behaviour (which status fields change, whether the output-mode event fires, whether the vblank period adjusts immediately) has not been measured; the fallback and its unverified status are recorded in the debt file.
Tested
video_out_output_mode_policy: passedguest_video_out_output_mode: passedguest_video_out_high_frame_rate: skipped (host display below 120 Hz)Checklist
Imported from boykopovar/AnyPS5. Originally posted by aneeqakbar on 2026-10-19T21:32:54Z.
Lgtm
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T21:33:23Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceVideoOut.mdL20-21docs/dev/debt/libSceVideoOut.mdL20-21Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceVideoOut/src/VideoOutDriver.cppdocs/dev/debt/libSceVideoOut.mdcore/libs/prx/libSceVideoOut/src/VideoOutDriver.cppcore/libs/prx/libSceVideoOut/src/VideoOutDriver.cppdocs/dev/debt/libSceVideoOut.mdcore/libs/prx/libSceVideoOut/src/VideoOutDriver.cppcore/libs/prx/libSceVideoOut/src/VideoOutDriver.cppImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T23:27:25Z.
I reviewed the current diff. The new fallback runs in
processFlipafter mode 15 has already been configured, but the PR changes no tests. The existingvideo_out_output_mode_policytest covers initial mode validation, andguest_video_out_high_frame_ratecovers mode 15 on a display that supports it; neither appears to exercise losing high-refresh support while mode 15 is active. Could you add a focused regression for the transition to mode 1, theVIDEO_OUT_EVENT_SET_MODEnotification, and the resumed 59.94 Hz vblank cadence, or point me to existing coverage for that path? This would protect the behavior the issue reports without requiring a physical two-monitor setup.Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-20T20:04:01Z.
Windows check, related to #7877.
Windows 11 Pro, Intel Core i9-14900K, 128 GB, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON. Headdd523997daand its merge base283cde8987, built one after the other in the same build directory. Two displays: the window opens on a 2560x1440 239.76 Hz monitor and moves to a 1280x720 60 Hz TV about a second after start. That is the two-monitor case #7877 describes. Mortalfin (PPSA99141) and Steam Remote Play (PPSA99350) were relinked from each build withrelinker --windows --registry, each with a fresh run directory.Titles, 60 s each, both titles running side by side
0xC0000409, Mortalfin after 12.0 s and Steam Remote Play after 39.8 s (its window is black from the abort on):sceVideoOutGetResolutionStatusonce, at 1 s, before the move (refresh id 13). It doesn't query again, so neither title shows whether it reacts to the new status or to theSET_MODEevent.Tests
ctest -R "^(video_out_output_mode_policy|guest_video_out_output_mode|guest_video_out_high_frame_rate|patched_libraries)$": 4 of 4 pass on both base and head. Hereguest_video_out_high_frame_rateruns on the 240 Hz monitor and passes, so it doesn't skip as it did in the PR's Linux run.main2185dbf92without conflicts, and line 545 there still has therequire.Notes on the change
processFlip. A title that stops flipping while it is on the slower display keeps 119.88 Hz vblanks (vblankEndskips no tick) until its next flip.SET_MODEevent is acceptable here is for the maintainers to decide. On this machine it does what the description says.Mortalfin on the head at 57 s. On the base it exited before the first capture at 15 s.
Verdict: works on Windows with an RTX 5080. Both titles that abort on the base after the move to the 60 Hz display keep running at 59.94 Hz with the change. It still needs a test for the new path, and maintainer sign-off on an unmeasured fallback.