Repository navigation
xbox_present: one [d3d12-trace] line per PresentX, with its outcome - #9549
Conversation
The queue proxy's PresentX slot is past the PC chain, so nothing recorded a present: a --trace-d3d12 run of a frame loop could not say how many frames were presented, or whether one was refused. XboxPresentation::PresentX now writes one line per call through d3d12_trace::result (ok or failed). xbox_present_test captures the trace around a blank present and a refused three-plane call and checks for exactly those two lines. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
|
Tested
Code read, no problems found: the body moves unchanged into Two notes, neither blocking:
No game files. AI-assisted (Claude Code). |
|
Tested
AI-assisted (Gemini). |
…he trace-off case Review notes on ItsNotRexed#9549: fopen warns C4996 on MSVC and narrows the temp path to the ANSI code page, so a TEMP outside it left stderr unredirected and the test failed with counts of 0. The capture now opens the wide path and reports whether it redirected, which the test expects. The comment said nothing is written with the trace off; a refused PresentX under a capture with the trace off now checks it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
|
Thanks both for the MSVC runs, that was the gap in my description.
Re-run on the same machine as before (clang-cl 22.1.8 + xwin, Wine 11.21 staging, RTX 5070 Ti 615.78.08): AI-assisted. |
|
checked: #9549 | head 0438ee4 merged onto main 5d74c27 (clean) | on: native Windows 11 26200, MSVC 14.44 (the build the description didn't run), RX 9060 XT (RDNA4), AMD 26.11.2 | result: pass. It builds with no new warnings in the changed files; AI-assisted (Claude Code), no game files. |
|
Validated complete current head
The remaining synthetic presentation/readback cases also passed. Source preservation review found the original PresentX implementation unchanged inside the traced wrapper. These are full-owner-head integration results; the owner head was not run alone. No game data is included. Built with MSVC / Visual Studio 2022, RelWithDebInfo. Tested source: https://github.com/Hiiva/Leonida/tree/work/exe-reviewed-bd8b17d5 |
|
Tested
AI-assisted: yes |
|
checked: #95490438ee4 | with: merged onto Adding to @nullmarsh's MSVC run, the two controls:
One difference from @Hiiva's run, for whoever tests next: on this card, with AI-assisted (Claude Code), run by a person. No game files. |
Claimed in #9522 (comment)
What
XboxPresentation::PresentXwrites one[d3d12-trace] #<seq> XboxPresentation::PresentX <ok|failed>line per call when the D3D12 trace is on (d3d12_trace::result). The body moves unchanged into a privatepresent_x; the public method records its result, so every return path is covered.Why
The console's PresentX is a queue slot past the PC chain, so nothing records it, and a
--trace-d3d12run of a frame loop cannot say how many frames were presented or whether a present was refused. Several frame-loop reports in #7154 say so ("PresentX writes no trace line on this head, so presents are not counted", "this build has no present counter").tools/boot_trace.pyneeds no change: it already groups trace lines by method and outcome.With the same line carried locally on an integration stack, a retail run counted 90,932 presents against 272,797
DrawInstancedin two minutes, which is how "3 draws per present" was measured.Tested
Linux (Nobara 44), clang-cl 22.1.8 + xwin SDK 10.0.26100 cross-build, Wine 11.21 staging, RTX 5070 Ti (NVIDIA 615.78.08), real display. No game files.
xbox_present_test: all cases pass. The new case captures stderr around a blank present and a refused three-plane call and expects exactly oneokline, onefailedline and no other trace line.gta6rtbuilds.python -I scripts/check_no_game_data.pyon the four files: clean.tests/test_docs_links.pyandtests/test_docs_cli_flags.py: one failure each, the same on unmodifiedmain(5d74c2723).Not run: the MSVC build and the Windows CI jobs.
AI-assisted.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt