feat(agc): trace slices and GPU ranges carry the recorder batch they belong to #5046
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5046"
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 parl0v on 2026-10-13T09:35:30Z.
What
A trace (#4526, GPU track #4632) shows the GPU's batches and the CPU's packet slices, but nothing ties a GPU batch to the work that recorded it. On a dispatch-heavy scene the GPU track is a row of unlabeled
batchslices, some taking 10+ ms, with no way to tell which packets filled them.Batch::traceId, from a counter; 0 when no trace records).TraceBatchTag, thread-local, read inTraceThread::Add).TraceGpuRange::batch,GpuSlices).TraceFormat::Eventswrites the id as"args":{"batch":N}onXevents that have one; events without an id keep their current shape.Tested
agc_performance_tracepasses, with a newBatchIdscase: a slice's id in the JSON, a thread's tag onAdd, and a GPU range keeping its id throughGpuSlices. Thelibstarget builds.APS5_TRACE_SECONDS=60:20), on the SotS working-group base with #4526/#4581/#4632 ported: 10,399 of 10,406 GPU slices and 299,401 of 301,361 CPU slices carry an id. Joining on it gives each GPU batch the packets that recorded it, e.g. the 16 ms batches of that scene each come from ~1.6 ms ofDriver.Packet.dispatchwork.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 adriadam10 on 2026-10-14T11:27:35Z.
Rebased onto current
main(the conflict was adjacency withTraceIntervalfrom #4812 and theGpuRangesignature; both kept).agc_performance_traceand the rest of the libSceAgcDriver tests pass on Linux (onlyagc_driver_tessellationsegfaults, as onmain); the newBatchIdscase fails to build without the change. Merging once the full Build is green.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T12:00: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)core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cppL108