RT: rethink the silent auto-off / degrade under low VRAM (confusing to users) #227
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.
Blocks
Reference
sky_line/Slipstream#227
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?
Problem
When VRAM runs low, ray tracing silently turns itself off or degrades. Users find this confusing: shadows switch from RT to shadow maps (or objects drop out of RT) with no explanation, and it looks like a rendering bug.
Current mechanisms:
LLCleanRendererVKtexture residency (vkgfx/llcleanrenderervk.cpp, the "TEXTURES LAST (#164)" block): under heap pressure,LLCleanRTVK::yieldForPressure()halves the RT memory cap (mPressureCap, floor 256 MB) before the texture mip bias moves. It only logsRT: VRAM pressure -- budget capped at ....RenderVKRTBlasBudgetMB, default 12% of the device budget, 384 MB – 2 GB) plus the pressure cap means geometry that doesn't fit is simply not in the TLAS.RenderVKRTSunShadow= 2) "fall back to shadow maps ... over the RT memory budget". RT projector shadows fall back similarly.Goals
Find a better path. Options to evaluate:
mPressureCapback up with hysteresis. Today it only ever ratchets down.Notes
Part of #405 (RAM/VRAM management epic).
Linked: #483. Ray tracing turned off at runtime leaves the Advanced panel showing "Ray traced" values that aren't in effect, and greys out RT resolution and projector RT with no visible reason. The status line and recovery action in #483 depend on making this auto-off visible and recoverable here.
Verified 2026-10-10: under VRAM pressure RT degrades softly and reports what it does ('RT memory budget is full: avatars no longer cast ray-traced shadows (scenery still does) until memory frees up'); no silent auto-off and no setting written. Closing.