Repository navigation
Conversation
…iple of the SIMD width (Ocarina of Time -0.35 ms of GPU time a frame on an M1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rows seedds#2577, seedds#2441 and seedds#2574 added went in out of order; test_env_switches compares the table with the sorted output.
|
Thanks. The hint is correct: M4 Pro (20-core GPU), main ae3f169 + this PR, a full library for main's chain, Ocarina at Kokiri Forest (the deck save, standing) Separate runs were too noisy to decide this: run-to-run spread on one host is up to 0.8 ms here, more than the gain claimed. So I measured within one process. A measurement-only host puts the hint into the mesh pipeline key (the key's spare word), so
The baseline is about 17.2–17.7 ms of GPU time a frame. So on hardware with mesh shading it is neutral, neither a gain nor a cost. Can you measure the M1 the same way? Your −0.35 ms came from separate runs in another tree, and that is within the noise we see between runs. For the A/B to work, the hint has to be in the key. The measurement-only change on top of this PR:
Then run If the M1 shows a consistent gain this way, I'll land the PR (with its |
|
Hi! This branch is based on a To pick up the fix, merge the current git fetch origin
git merge origin/main
git pushIf the merge has conflicts, ask here if you want help with them. |
|
Ocarina of Time results on an M2 (MacBook Air, 16 GB, macOS 27), for comparison with the M1 numbers in the description. Build: our cut9 line (cut9s.2), shader chain f734e024449d, plus this PR and #2868 in the same build. Since both changes were in one build, the effects below can't be attributed to either one alone. Method: route4 scripted runs, alternating builds (ABAB), scored from frame 600:
PWR_ZONE was 0 % in every run. Results (with both PRs, against the same base without them):
Next step: separate runs of a single build with 🤖 Generated with Claude Code |
|
Thanks for the M2 measurements and for calling out that the build included #2868. If you’re able to rerun the comparison, could you try this PR alone on current |
…pulled; seedds#3208 tried Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
What
Task and mesh pipelines (
mtk_desc4, and the Metal 3 path) now setobjectThreadgroupSizeIsMultipleOfThreadExecutionWidth/meshThreadgroupSizeIsMultipleOfThreadExecutionWidthwhen the shader's threadgroup is a multiple of 32 threads. NVN2's task and mesh shaders are 32 threads, one SIMD group, so this is always true for them. A mesh shader with no task shader keeps the host's one-thread object function without the hint. The compiler may then drop the code for partial SIMD groups.DM_NVN_MESH_TGHINT=0builds them without the hints. The pipeline cache key leaves the flag out, so it can't alternate within a run.Performance
Ocarina of Time (0400486024DEC000), Kokiri Forest, MacBook M1 (8-core GPU), fullscreen, in a tree with other local changes. The frame is paced at 30 fps, so this measures GPU time:
DM_NVN_GPUPROF"first start to last end", frames 1200–2700, two pairs of runs in both orders:About −0.35 ms of GPU time a frame. Requiring the exact sizes as well (
requiredThreadsPer...Threadgroup) gave nothing more.Checked
DM_PSO_PREBUILD) runs the host itself, so it builds the same descriptors.Not run
🤖 Generated with Claude Code