VRAM: mRegir kept after GI and RT reflections are off (48 MB); AO normal target always allocated (63 MB) #1432

Closed
opened 2026-11-04 06:03:36 +00:00 by sky_line · 1 comment
Owner

mRegir (llcleanrenderervk.cpp ~50418) is freed only at shutdown (~41107), MEASURED 48-50 MB: free it after a grace period when no consumer needs it. mAoNormal (~34954) is allocated unconditionally at full-res RGBA16F, but deferred frames (the default) read G1: allocate it lazily only when a frame needs it (63 MB at 4K DLAA). High / medium confidence.

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.

mRegir (llcleanrenderervk.cpp ~50418) is freed only at shutdown (~41107), MEASURED 48-50 MB: free it after a grace period when no consumer needs it. mAoNormal (~34954) is allocated unconditionally at full-res RGBA16F, but deferred frames (the default) read G1: allocate it lazily only when a frame needs it (63 MB at 4K DLAA). High / medium confidence. 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
Collaborator

Both parts are already on main (merged with 65b7ad1281, "VRAM free wins"), so closing:

  • mRegir: a4c9c3e58a frees the light reservoir grid (48 MB) after 10 s with no consumer (freeRegirIdle). ensureRegirBuffer re-creates it when a frame wants it again.
  • AO normal target: 3e89ec103f makes it on demand (ensureAoNormal) and frees it after kAoNormalHoldSecs unused (63 MB at 4K).
Both parts are already on main (merged with 65b7ad1281, "VRAM free wins"), so closing: - **mRegir:** a4c9c3e58a frees the light reservoir grid (48 MB) after 10 s with no consumer (`freeRegirIdle`). `ensureRegirBuffer` re-creates it when a frame wants it again. - **AO normal target:** 3e89ec103f makes it on demand (`ensureAoNormal`) and frees it after `kAoNormalHoldSecs` unused (63 MB at 4K).
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1432
No description provided.