upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-25 00:11:10 +0100
committerTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-25 00:25:24 +0100
commit2b72fb53d15c91d3cf5998f863c38854396ce03b (patch)
tree398b1c462ea187172178a89aeb46b7501616afbb /runtime/src/xma2_decoder.cpp
parent79d044e54de1701b28a0657028c169e5f590ad2e (diff)
d3d12_vulkan: textures share blocks of device memory (VK-IMAGE-MEMORY-POOL)
Every committed and placed texture made its own vkAllocateMemory and released it with its own vkFreeMemory, about 100 us and 200 us on an RTX 3080. Small device-local textures now take ranges of 64 MiB blocks (runtime/src/image_memory.h). Render targets, depth buffers, CPU-visible textures and textures over an eighth of a block keep their own allocation. A range goes back to its block through the deferred deletion queue, and a texture in a reused range is zeroed before a shader reads it. Tests: image_memory (CPU) and d3d12_texture_memory (GPU).
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions