You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Title textures: what the CPU spends per texture before the GPU copy (numbers, and who does what) #449
BC7 4096² … 256² with mips (4KB_S; 64KB_S, 64KB_S_X and 64KB_D_X at 2048² are close to it)
1 174 … 1 995
2 524 … 10 859
2 000 BCn textures with mips, 64² to 4096² (mostly small), 1 044 MiB: layout / read copy / detile
642 / 99 / 1 018 ms
620 / 104 / 408 ms
Upload path (texture::upload_batch, RTX 5070 Ti, driver 610.74, idle GPU with free memory): a new allocator and list 0.08 ms; a new upload buffer 0.3 ms at 64 KiB, 0.6 ms at 1 MiB, 5.6 ms at 16 MiB; the CPU wait on an idle queue 0.003 ms. A BC7 256² with mips costs 0.34 ms in a batch of 512 and 0.62 ms as a batch of its own; a video frame (three R8 planes, 11.9 MiB) 6.8 ms. So on an idle GPU the per-texture cost is the upload buffer, and the long waits reported need video memory past the card, which this does not reproduce.
Not tested: a retail title, AMD, more than one thread, a debug build, 3D textures (detile_volume is unchanged by the diff).
Activity
DarX-Oren commentedon Nov 24, 2026
Independent RDNA2 benchmark — RX 6700 XT
Environment:
508a0c7Five runs, 50 measured pairs, alternating upload order, with 64 identical BC7 textures per measurement.
Batching reduced median upload time by 69.4%.
Additional findings
Correctness was verified through GPU readback of all 5,594,112 bytes across 576 mip subresources after changing the source data.
I also tested a write-only Map hint, but it regressed batched performance in five of six paired runs, so I am not proposing a patch.
These are synthetic benchmark results, not measured in-game FPS improvements.
Benchmark source and raw logs are available if needed. Happy to investigate further RDNA2-specific performance issues.
AI use: OpenAI Codex (GPT-6) assisted with benchmark implementation, profiling and testing on physical hardware.
Textures: cache GFX10 tiling Layout offset tables by mode, element si…