Sampler switches: VICTORY_ANISO (forced anisotropy) and VICTORY_MIP_BIAS, off by default #1295
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1295
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1295"
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?
@Mumogg on GitHub · 2026-11-28 17:02 UTC · original
Mumogg:feat/sampler-aniso-bias→main· +308 −14 · 3 files · 1 commits · closed without mergingWhat
This adds two host-side sampler switches. Both are off by default, and with neither one set every sampler descriptor is bit-for-bit the same as today (a test pins this).
VICTORY_ANISO=2..16turns samplers that filter linearly in min, mag and mips into anisotropic ones.MaxAnisotropyis the larger of the console's value and N, capped at 16. Point, point-mip, no-mip, comparison and min/max-reduction samplers are left alone. Values below 2, or ones that don't parse, mean off.VICTORY_MIP_BIAS=<lod>adds a bias to the LOD bias of every sampler that has mips (a NaN bias counts as 0), then clamps to the D3D12 range.Each switch is read from the environment once. Static samplers use the adjusted values in both the root signature and the key of the kept static-sampler order, so the two can't disagree.
Why
At a 4K output with DLSS Quality, ground and walls seen at grazing angles are the softest part of the image. Forcing anisotropy on the host fixes that at no measurable cost.
Tested on Linux (Wine + GE vkd3d-proton), RTX 5070 Ti 16 GB, Series X profile, DLSS Quality with frame generation x2. Each run was 8 minutes on the same restored save with the world clock frozen (#1155):
VICTORY_ANISO=16VICTORY_ANISO=16 VICTORY_MIP_BIAS=-0.5Tests
sampler::: 7/7, including default unchanged, aniso applied only to linear-mip samplers, and bias added then clamped. All of them failed first against a stub that ignored the switches.pipeline::samplers: 3/3, includingtuned_words_carry_the_effective_values.shadow.rs, is already on main.AI-assisted change and testing.
🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-11-28 19:22 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed