upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts/launcher_python.sh
diff options
context:
space:
mode:
authorthiefyzheng <thiefyzheng@users.noreply.github.com>2026-11-25 14:00:13 +0000
committerthiefyzheng <thiefyzheng@users.noreply.github.com>2026-11-30 23:34:45 +0000
commit1cd6eaf7c67e05d0f9183da0869843acc498fadb (patch)
tree72a93803f7cc2b19b04bcf76da7cb412b353a53a /scripts/launcher_python.sh
parentd4fabd3fe40d126e93fae56bc7e8e9ada3e818ce (diff)
copy_elements: dispatch fixed element widths 1/2/4/8/16 to a compile-time-sized memcpy loop
copy_elements ran a runtime-sized std::memcpy per texel/block (the call is not inlined), which dominates TitleImageUpload::write on runtime texture refresh. The per-row element loop is now copy_tiled_row<Into, Width>, chosen by one switch on format.bytes per row: 1/2/4/8/16 get a constant-size memcpy, every other size takes the unchanged runtime-size loop. Addresses (row/column tables, pitches, linear fast path) are untouched, so the bytes written are identical, including for unaligned pointers and pitches and in both directions. texel_copy_test compares copy_elements with the original loop over the whole destination buffer: tiled and linear, mips and tails, arrays, volumes, widths 1/2/4/8/16 plus non-specialized 3/6/12, misaligned buffers and padded pitches.
Diffstat (limited to 'scripts/launcher_python.sh')
0 files changed, 0 insertions, 0 deletions