upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 17:47:00 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 17:47:00 -0500
commit41b46f0dcfccda0feba44c208c709429b59b76fc (patch)
tree9024ccf1b127a004aa7bad136ac982551a54d9b8 /docs
parent6f5e2ddc298dcab0f4edc61ae644d34da1dac6e1 (diff)
parent83d9eee2bbf58d729b2e0feb31bb5ad0aa71473b (diff)
Local test merge: descriptor refill on the exact-range index (83d9eee2b)
runtime/README.md: the console-heap rows come from the refill branch, the shadow rows from #1867. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/d3d12_vulkan.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index c07338cbe..52819a4d8 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -2152,6 +2152,27 @@ The game can use D3D12 descriptors in three ways, and the layer must handle all
2152 of a buffer 10 of 60,010 slots name looks at those 10, that a 40-byte release among 300,000 slots packed into 74 2152 of a buffer 10 of 60,010 slots name looks at those 10, that a 40-byte release among 300,000 slots packed into 74
2153 blocks of 64 KiB looks at the 3 it overlaps, and compares the copy with a full re-resolution through random 2153 blocks of 64 KiB looks at the 3 it overlaps, and compares the copy with a full re-resolution through random
2154 writes, releases, additions and alias changes. 2154 writes, releases, additions and alias changes.
2155 A title-written T# has a record too, under the exact base address it names (`bind_title_image` looks textures up
2156 by that address, or by the other view of texture-pool memory): bound, or waiting for a texture there (no texture,
2157 or one whose type, samples, mips, layers, image or views do not fit the T#), or waiting for room in its bindless
2158 array. A texture registered, replaced or published at an address (`note_image_address`, a title texture's
2159 placement, a streamed texture's image), or gone from it (`forget_image`, a placement removed), goes on the same
2160 list, and the next submission fixes again exactly the T#s naming that address; freed bindless entries fix the
2161 T#s waiting for room. Nothing looks at a waiting T# otherwise: before, a round robin tried the waiting slots again
2162 for 500 µs a submission (`LEONIDA_CONSOLE_RETRY_US`), which in world runs took tens of submissions to come round
2163 and counted every look as a T# "naming no texture" again. A texture that goes takes its T#s out of the descriptor
2164 hash table at once (`forget_image_views_locked`), so a shader reading the slot gets the fallback; the slot then
2165 waits for the next texture at the address, which a texture streamed out and back in needs. A V# half whose
2166 geometry copy was refused for lack of room waits for room the same way: the slots are fixed again when geometry
2167 copies are freed (`GeometryViews::free_generation`), not only when something is added over their base.
2168 A T# with no texture at its address is counted by what the address is (`unbound T#s by reason` in the heap's log
2169 line): title memory, a texture of the layer's own that is gone, an address whose low 32 bits are one of the
2170 layer's texture addresses with other high bits (the texture there with the T#'s shape, with another, or gone),
2171 or none of these. The heap's `slot records` line gives the T#s recorded, those waiting, the T# fixes that left
2172 one waiting and the refills since the last line. `d3d12_tsharp_refill_test` samples, through the last of 60,001
2173 waiting slots, a texture made after the T# was written, at the first submission after it appears. T#s are a third
2174 index of the same kind, keyed by their address: a texture change visits exactly the T#s recorded for that address,
2175 and the records waiting for room are kept in a list per kind, which a change saying room was made visits whole.
2155 Console resource heap copies and shader-visible CBV/SRV/UAV heaps with at least 65,536 slots request 2176 Console resource heap copies and shader-visible CBV/SRV/UAV heaps with at least 65,536 slots request
2156 64 MiB of zeroed padding after their last descriptor. `LEONIDA_HEAP_GUARD_MB` sets the padding in MiB 2177 64 MiB of zeroed padding after their last descriptor. `LEONIDA_HEAP_GUARD_MB` sets the padding in MiB
2157 (0 disables it). When arena space is tight, allocation can fall back to the heap alone. Only indices 2178 (0 disables it). When arena space is tight, allocation can fall back to the heap alone. Only indices