VRAM: geometry compaction needs old + new buffers at once (2-5 GB transient peak) #1426

Open
opened 2026-11-04 06:03:36 +00:00 by sky_line · 0 comments
Owner

Geometry pack compaction allocates the new vertex, index and weight buffers while all three old ones are still live (llcleanrenderervk.cpp ~8546-8590, 1496, 8575), and the garbage-triggered repack sizes to need x2 (no tight flag), so it may free nothing. #1422's log shows the allocation refused: "no room for old + new buffers; dropping vbo 1344 ibo 629 weights 524 MB". Peak is old + new; steady slack up to 0.5 x pack.

Do: sequence per buffer, use the tight size for garbage repacks, and where possible resize/compact in place. Must not cause a hitch (spread over frames, GPU copies, no device-wide waits). High confidence on the peak.

From the 4K VRAM audit (2026-11-04) prompted by #1422 (RTX 4070 Ti SUPER at 3840x2089 with RT + GI: the degrade ladder sat at rung 21/45, capping textures, mesh detail 1/4 and draw distance 35% while lighting kept full cost). Sizes are at 4K unless noted; COMPUTED = from formats in code, MEASURED = from logs.

Geometry pack compaction allocates the new vertex, index and weight buffers while all three old ones are still live (llcleanrenderervk.cpp ~8546-8590, 1496, 8575), and the garbage-triggered repack sizes to need x2 (no tight flag), so it may free nothing. #1422's log shows the allocation refused: "no room for old + new buffers; dropping vbo 1344 ibo 629 weights 524 MB". Peak is old + new; steady slack up to 0.5 x pack. Do: sequence per buffer, use the tight size for garbage repacks, and where possible resize/compact in place. Must not cause a hitch (spread over frames, GPU copies, no device-wide waits). High confidence on the peak. From the 4K VRAM audit (2026-11-04) prompted by #1422 (RTX 4070 Ti SUPER at 3840x2089 with RT + GI: the degrade ladder sat at rung 21/45, capping textures, mesh detail 1/4 and draw distance 35% while lighting kept full cost). Sizes are at 4K unless noted; COMPUTED = from formats in code, MEASURED = from logs.
sky_line added this to the Slipstream project 2026-11-04 06:03:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1426
No description provided.