Repository navigation
perf(agc): expand draw recipes to support depth targets - #4947
Conversation
|
Windows build check (MinGW GCC 15.2, Release, Windows 10): the new test does not compile on this toolchain. Built on main Both lines are Not tested: the test itself (it never got built), and nothing outside this compile error; no game run. AI-assisted (Claude Code). |
|
Three things:
|
ce8315c to
3d8e3fa
Compare
|
Thanks @oneandonlydean for the review. Addressed all three points:
|
|
The |
|
Numbers for this PR alone, as asked above. Diablo II: Resurrected (PPSA03912, 01.039.000), Linux, RTX 3080 Ti (NVIDIA 615.71.09),
Mean 41.2 on A and 41.5 on B: no measurable difference (the two sets overlap, and the spread inside one set is about the size of the gap). It also changes nothing visible: no new refusal or abort in either build. That fits this title: its draw-cache hit rate is only about 0.2% (the user data changes on almost every draw), so few of its draws are replayed from the cache and there is little for depth-target replay to speed up. So this is a no-change result on Diablo II, not evidence for or against the PR on a title that does hit the cache. AI-assisted; the runs are from my machine and I can attach the |
3d8e3fa to
3ebad90
Compare
|
Done @oneandonlydean. Moved |
What
Expands direct
DrawRecipecreation and cached replay execution to draws with active depth targets:bool hasDepthtostruct DrawRecipeinRecipe.hpp.!state.depthguard for direct draws inDraw.cpp, populatingrecipe->hasDepth = state.depth.has_value().DrawWithRecipe, validatesrecipe.hasDepth == state.depth.has_value(), checks thattargetViewsmatchesstate.colors.size() + (recipe.hasDepth ? 1u : 0u), and verifies depth target identity viarecipe.targetViews.back() == DepthSurfaceView(context, *state.depth), rejecting withDrawRecipeMiss::TargetGoneon mismatch.docs/dev/debt/libSceAgcDriver.mdto document depth target validation behavior without mentioning HTILE fast clear handling.tests/execution/DepthBiasPerFace.cppwith dynamic RAIIGuestBlock(VirtualAlloc / aligned_alloc) to conform to MinGW PE/COFF 8192-byte object limit.Performance & Telemetry (Astro Bot PPSA21567)
Measured across alternating 10-second runs on the title intro/gameplay transition scene against base
ea2bbefb2:main(ea2bbefb2)main + #4947main(ea2bbefb2)main + #4947main(ea2bbefb2)main + #4947NotRecordable) to cached replay hits (DrawFromRecipe), saving ~8.9 µs per draw of descriptor and pipeline state validation.Tested
PPSA21567)agc_driver_depth_bias_per_face_tests(DepthDrawRecipevalidates successful recording/replay and negative rejection on altered target address and removed depth target). All tests pass.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)