test(videoout): correct first flip pacing assertion #7583
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7583"
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 MarcZX10 on 2026-10-18T15:46:27Z.
What
Remove the pacing test's requirement that three additional vblanks pass after the first flip completes. The configured interval is the minimum spacing between releases, so completion may occur in the same vblank as release.
testPresentation()already checks the interval across consecutive flips. Keep the initial release-vblank sanity check and correct its failure message.Tested
Linux:
c++ -fsyntax-onlypassed forcore/libs/prx/libSceVideoOut/tests/Flip.cpp. The focused executable could not be built or run in this container because this checkout's SDL2 submodule is uninitialized and the installed development environment lacks XRandR support. The reported Windows RTX 5070 Ti run was not available here.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T15:55:03Z.
Some 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/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppImported from boykopovar/AnyPS5. Originally posted by cadenasynyster on 2026-10-18T16:00:50Z.
Ran this on the setup you couldn't, with a real window: Windows 11 26200, RTX 5070 Ti (NVIDIA 617.42), WinLibs GCC 15.2.0 r7, Release. Tree: main
9f25d0bwith only this change totests/Flip.cppapplied (this PR's base is newer than9f25d0b, so I took the file alone to keep everything else equal).video_out_flip_tests pacing, 3 runs each, directly with a real window:9f25d0bthe next flip is not paced from the vblank this flip was released at)9f25d0b+ this changeWhat it does and doesn't show: the change removes the
vblankStatus.count >= lastFlipVblank + 3half, which is the half that failed here, so a pass means the remaininglastFlipVblank >= 3holds, not that the flip now takes a different path. On main, a localprintfbefore the old check printedlastFlipVblank=11 vblank=11in all 3 runs: the flip is released at vblank 11 and has completed by the time the test looks, so no vblank passes between release and completion. That fits your reading that the old check asked for an interval the code doesn't promise. I haven't found why the release is recorded as late as vblank 11 here;aftergpu, which uses the same busy loop, passes on main and shows the flip completing after the GPU work.With the second half gone,
pacingno longer checks that the first presentation outlasts its release.aftergpucovers the GPU-work ordering, and your second-flip idea would cover the release anchor.Details are in #7581.
AI-assisted: yes (Claude Code).