Repository navigation
Runtime: GPU address arena high-water mark (D3D-55) - #612
Conversation
5981b5f to
2e99bc4
Compare
|
Tested e1666c8 merged onto main c432cdc on NVIDIA GeForce RTX 4060 Ti (Ada), driver 32.0.16.2124 (NVIDIA 621.24), Windows 11 Home 26300, MSVC 2022 / Ninja, Vulkan SDK 1.4.363: pass. Besides ctest, I ran each test program this PR changes directly (several aren't registered with ctest):
ctest: 100% tests passed, 0 tests failed out of 28. AI-assisted. |
|
Tested e1666c8 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass
No game files used. AI-assisted run (Claude Code). |
|
Reviewed the arena telemetry in |
The device tracks the arena's peak end offset, its peak live bytes overall and per use (buffers, shader-visible descriptor heaps, shader code and D3D12 heaps), and its allocations and refusals, and prints one line at release. LEONIDA_ARENA_LOG=1 also logs every VA handed out, every refused request, and upload/readback VAs outside the arena. This answers open question 5 (how large the arena must be) once the game runs. Rebased onto main now that ItsNotRexed#291 is in: arena_allocate/arena_release take the use, and every call site passes it, including the heap ranges ItsNotRexed#291 added since.
e1666c8 to
5418dec
Compare
Item: D3D-55 (claimed in #374)
Rebased onto
mainnow that #291 is merged: the PR is one commit on top ofmain, with no dependency left.The arena's capacity (default 256 MiB,
LEONIDA_ARENA_MB) is a guess until a run measures it (open question 5 indocs/d3d12_vulkan.md). This adds the measurement:DeviceState::Arenatracks the peak end offset (the size the arena must have), peak live bytes overall and per use (buffers, shader-visible descriptor heaps, shader code, D3D12 heaps), and allocations and refusals.[rt] d3d12: GPU address arena: peak end X of Y MiB (Z%), peak live …, N allocations, M refused.LEONIDA_ARENA_LOG=1logs every VA handed out, every refused request, and upload/readback buffer VAs outside the arena.arena_allocate/arena_releasetake the use as a new argument, and every call site onmainpasses it, including #291's heap ranges.main's zero-size checks and deferred destruction are kept. Onlyruntime/shims/d3d12_vulkan_device.cppchanges.Tested on NVIDIA GeForce RTX 4070 SUPER, driver 32.0.16.1088, Windows 11, MSVC 2022:
ctestpasses 129/129.LEONIDA_VK_VALIDATION=1 LEONIDA_ARENA_LOG=1,d3d12_compute_test,d3d12_draw_test,d3d12_vulkan_device_testandd3d12_descriptor_testpass with 0 validation errors.No game files. AI-assisted.