DLSS: fullbright/emissive textures blur at distance (missing upscaler mip bias?) #1386
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#1386
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
With DLSS on, some textures blur smoothly as the camera moves away and only look sharp up close. Other textures at the same distance stay sharp. It shows on fullbright and emissive surfaces, and was seen on an alpha-masked texture in Baltimare. The change is continuous with distance, not stepwise, so this is mip level selection while drawing, not texture loading. It's most visible at low render scales (seen with DLSS Ultra Performance + Ray Reconstruction, 1/3 render scale). This is likely part of the "textures stay low-res" reports (see #1314).
Likely cause (unverified)
While the upscaler is jittering, material sampling gets a mip bias of
RenderVKTAAMipBias+ log2(render height / display height). At 1/3 scale that's about -1.6, which keeps textures at display-resolution detail.taaLodBias()inindra/vkclean/shaders/clean_frame_info.glslreturns 0 when the instance has flag bit8uset, or whennoTemporalFace()is true. Inclean_rt_surface.glsl, material flag8ugates the emissive texture. If fullbright/emissive faces carry that bit, or are drawn on a no-temporal path, they get no upscaler mip bias and sample mips about 1.6 levels coarser than everything else at 1/3 scale.To check
8umeans, and whether fullbright/emissive (and masked) faces set it.73a7649957covers DLSS demand for normal materials).Done when
At DLSS Ultra Performance, a fullbright/emissive texture and an ordinary texture at the same distance are equally sharp, and both match native resolution.