mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 18:09:58 -04:00
An indirect mesh draw reads its workgroup count through a ring entry that a buffer copy fills, and a copy cannot be recorded inside a pass: every such draw ended its pass, 45 times a frame in a village. The first draw of a run now fills the entries of the mesh draws that follow it with only state, draws, counter reports and render conditions between them, and those draws stay in the pass (mesh_ahead, default 1; 0 is the old way, ab switches in A/B blocks). An entry is taken only by the draw it was filled for, at the same record address, while no other op was replayed since. Counter reports count as staying in the pass because the replay closes their query inside it and writes the value from the completion thread; the game reports one after most of these draws, and without that only 38% of the draws were served. Measured in the village: 42 of the 45 draws a frame are served by an entry filled ahead; gaps with these copies 41 to 3 a frame (0.22 to 0.04 ms of GPU time); passes and dispatches 248 to 208 a frame (302 to 254 in Hyrule Field). With the piece release of the commit before, one run each: village 142.6 fps and GPU busy 3.87 ms (138.0 and 135.4 fps, 4.15 ms without this change), Hyrule Field 136.8 fps and 4.34 ms (131.5 and 131.3, 4.70 ms). In A/B blocks of one run with the narrower rule (counter reports still ending a run) the GPU's busy time went from 4.81 to 4.64 ms. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
324 KiB
324 KiB