FSR 3 Frame Generation causes missing foliage/leaves and black textures (all profiles, including pure default Series X) #3173
Loading…
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?
Imported from ubiquitarianism/leonida. Originally posted by ThatAppleFanboy on 2026-12-02T16:17:32Z.
Enabling FSR 3 Frame Generation (-FsrFrameGen or via the F1 menu) causes missing foliage/leaves and black textures across the scene.
This is a regression. It now happens on all configurations, including a pure default Series X launch with no extra parameters. Previously the visual issues were more limited or not present on the default path.
Steps to reproduce
Reproducible on:
• Series S (title’s own upscaler + FSR 3 FG 2x)
• Series X (default / pure, no extra switches)
• With and without other upscaler overrides
Expected behavior
FSR 3 Frame Generation should generate intermediate frames without destroying foliage or causing black textures. The picture should remain comparable to the non-FG path (only smoother).
Actual behavior
• Leaves and foliage disappear or become incomplete.
• Various surfaces/textures turn black.
• Happens consistently once FSR FG is active.
Environment
• Runtime: Mandy (ProjectLeonida) D3D12 (leonida.exe)
• Profile tested: Series S and Series X
• Frame generation: FSR 3 (2x) via FidelityFX swapchain
• Built with DLSS support present (warnings during build are the usual unused/dead-code ones and do not appear related)
Additional context / likely area
Recent changes around G-buffer fallback and input tagging for frame generation (late November commits on fg.rs / FSR integration) appear to have made the default path supply incomplete or incorrect depth/motion/G-buffer inputs to FSR 3.
On the title’s own temporal upscaler path (Series X default), the title hands nothing over; the fallback sourcing of G-buffer data seems insufficient or stale for FSR FG. Selecting DLSS in the F1 menu (which forces the FidelityFX upscaler path) may improve or avoid the issue, supporting the input-quality hypothesis.
Related files:
• d3d12/crates/leonida-gpu/src/fg.rs (G-buffer fallback / tagging)
• d3d12/crates/leonida-gpu/src/fsr.rs (input preparation for present)
Startup logs otherwise look normal (Series S / title upscaler line, shader precompile progressing, no crashes).
This is separate from the existing frame-gen settings discussion in #3109 (fixed 60° FOV etc.).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T19:17:24Z.
Traced the
#3173symptoms acrossfsr.rs,resource.rs,draw.rs,texture.rs, andd3d12/scripts/play-nvidia.ps1, and opened #3206 (137c231a5d) addressing three concrete causes:LEONIDA_TEXTURE_ROOM_PERCENT = '80'double-counted FSR 3 VRAM (d3d12/scripts/play-nvidia.ps1):~1.5-2.0 GBswapchain + context buffers up front on frame 1 directly onID3D12Device, so those bytes are already counted in DXGIQueryVideoMemoryInfo(LOCAL).CurrentUsage(usedinresource::room) on top oftargets_room_kept()(3,072 MB),LEONIDA_WINDOWS_BAR_MB,shadow::card_for, and precompiled PSOs.LEONIDA_TEXTURE_ROOM_PERCENTfrom90to80under-FsrFrameGen/ F1FSR 3 FRAME GEN 2Xsubtracted another10%of budget after FSR's buffers were already inused, trippingresource::room()tofalseright above the2 GiBfloor. Unmade bindless textures (draw.rsheap_textures) and unmappedon_demandmip tiles (texture.rs) read(0, 0, 0, 0)on D3D12 — turning opaque surfaces black (rgb = 0) and discarding alpha-tested leaves/foliage (alpha = 0 < cutoff). Selecting DLSS shrank render targets + FSRmax_render_size, easingusedbelow the80%cliff.-FsrFrameGen -More @{ LEONIDA_TEXTURE_ROOM_PERCENT = '90' }tests the90%default directly.USAGE_DEPTHTARGET | USAGE_STENCILTARGETand plane-0 SRV formats (d3d12/crates/leonida-gpu/src/fsr.rs):resource.rscreates every shader-readable host depth target as typeless (R32G8X24_TYPELESSon Series X,R32_TYPELESS,R24G8_TYPELESS,R16_TYPELESS) withALLOW_DEPTH_STENCIL, whereasfsr::Resource::textureonly matched typedD16/D24/D32formats — leavingusage = 0and causing FidelityFX's DX12 backend to attempt invalidCreateShaderResourceViewformats (E_INVALIDARG) inPrepareV2(breaking depth dilation / disocclusion on thin foliage).PrepareV2DEPTH_READ(0x20/0xE0) barriers on the title's own upscaler (d3d12/crates/leonida-gpu/src/fsr.rs):PresentinDEPTH_READ(0x20) or0xE0, whichffx_statemapped toSTATE_DEPTH_ATTACHMENT(DEPTH_WRITE,0x10), producing illegal0xD0barriers or desynchronizing GPU vs tracked depth state across frames. #3206 transitionsdepthandmotionexplicitly toNON_PIXEL_SHADER_RESOURCEaroundPrepareV2and fixesffx_state.AI-assisted: Gemini 4 Carbon (High) + Gemini 4 Neon (XHigh).