upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-28 04:42:32 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 04:42:32 -0500
commit42ff296c071de0a5a39bb15a68b9cbec89369288 (patch)
treecdf2cdd8a01c8edb43baebbd7e1407da5889e9ab /tests/test_run_gpu_tests_python_assembler.py
parent3a5552e28534e50511c6382f0f359d13ec154f9c (diff)
The copy behind an aliased view can go from texture to texture (LEONIDA_ALIAS_DIRECT=1; off by default), and the copies are counted by view
Every aliased view of the title's is an R9G9B9E5 view placed in the memory of an R32_UINT texture shaders write (59 views of 20 sizes at the waterside save, eleven of them 2560x1440). Direct3D copies between these two formats texel for texel as they are (the "format conversion" pairs of 10.1), so the buffer in between is not needed: one copy of each part instead of two, no buffer of the texture's size on the card for each view. Tested on the card with the debug layer: one level, six layers of three levels, a volume. RTX 4060 Ti, Series X profile, 1440p, standing at the save: - timing runs: the copies 3.6 ms a frame in 86 commands through the buffer, 1.9 to 2.0 ms in 86 from texture to texture; - switched in turns of 4 s in one run (LEONIDA_AB): the frame 2.6 ms shorter with it (+-0.9; medians 3.2 +-1.1), of 78; - with no copy made at all (LEONIDA_AB=<s>,LEONIDA_EXP_NO_ALIAS_COPY, for timing only) the frame is 3.1 ms shorter (+-1.3): that is all the copies cost, and what a view of the written texture in the other format would save. The counts (a line a frame-rate line, and with LEONIDA_ALIAS_COUNT=1 by view): 86 copies a frame of 57 views, 390 MiB; 53 at a list's first read of the view with the source as the list found it, 21 after the list wrote the source, 11 again in a list after it wrote it again, none with the source only read since. By view the copies outnumber the times a list moved the source to a written state: a 2048x2048 view 4.1 copies for 0.9, seven 2560x1440 views 0.9 copies for 0.5 (written every other frame), two more 2.0 and 1.9 for 0.5. About 150 of the 390 MiB a frame are copies of a source nothing wrote since the view's last copy, in another list or the frame before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions