Indirect draws drain the queue-0 draw pipeline (#1202) #1895
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 fisherjoey on 2026-10-08T22:55:15Z.
With #1201/#1202, a direct draw on queue 0 becomes a commit item and the packet worker moves on. An indirect draw (
DRAW_INDIRECT,DRAW_INDEX_INDIRECT,DRAW_INDEX_INDIRECT_MULTI) drains the pipeline first and then recordsGraphics::Drawinline on the worker, under the GPU mutex (Draw.cpp, theDrainReason::Indirectdrain at the top ofDriver::draw).Most of Demon's Souls' draws are indirect, so most of its draw recording stays on the worker. Tutorial level, debug start menu route,
APS5_PROFILE_DRAW=1, per 10 s on the #1202 stack:DRAW_INDEX_INDIRECT: ~223k packets, 4.6 s of queue-0 time. Direct draw packets (DRAW_INDEX_OFFSET_2): ~19k.Graphics::Drawon the worker: 1.8-1.9 s.All of these indirect draws take the GPU-side path (
[indirect] gpu-side, cpu-side 0), so the drain does not protect a CPU read of the arguments.A fix is ready on https://github.com/fisherjoey/AnyPS5/tree/perf/pipeline-indirect-draws:
APS5_PIPELINE_INDIRECT=1(off by default) enqueues indirect draws as commit items. It drains only when the argument range, or the count dword, overlaps a pending write. Measured: 490 -> 441 ms per frame (-10 %).AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:09:56Z.
The queue-0 draw pipeline only exists with #1201/#1202, which aren't on main, so this belongs on #1202. Please post it there; this can close then.
Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-14T00:42:07Z.
Moved to #1202 (https://github.com/boykopovar/AnyPS5/pull/1202). Closing.
AI-assisted: yes