VRAM: geometry compaction needs old + new buffers at once (2-5 GB transient peak) #1426
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#1426
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.