fix(dlss): #2193's review notes: the tolerance as dlss_checks.h says it, each refused size logged once #2413
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!2413
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/dlss-near-mode-nits"
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?
#2193 was merged before I pushed hckrman101's three review notes to it, so they come here on their own. No behavior changes beyond a log line.
What changed
prepare's comment (gpu/vk/vk_dlss.cpp, near line 300) said a size "a pixel or two" outside a range is taken. It now says whatdlss_checks.h'smode_fortakes: at most 1/64 of the range's largest size on each axis, 2 pixels at the least.fail()invk_temporal.cpplogs a reason again only when its pointer changes, and the refused message was one static buffer, so a second, different refused size was not logged until the 600th repeat. The message now has two buffers, and a new size goes into the other one:fail()sees a new pointer and logs it in its usual format. (Logging it inprepareas well could print a size twice when another reason came between two refusals, becausefail()'s last reason is not reset on success.)test_dlss_checks.py: the assert's message on its own line, like the other asserts (review note).Tested
tests/run_all.pyon Windows (llvm-mingw): 364 passed, 31 skipped, 1 failed:test_recorder_sync(its exit case), which fails the same way on untouched main on this PC.vk_dlss.cpp). Not run in game: the change is a log message and a comment; the refused path itself is #2193's.🤖 Generated with Claude Code
Thanks for following these up. All three notes from #2193 are addressed, and nothing else changes behaviour.
dlss_checks.hmode_for:max_w / 64, with 2 at the least, on each axis.rw/rh/ow/ohmean every change of size handsfail()a new pointer, so it logs right away. That includes going back and forth (A, B, A): each switch lands in the other buffer. A repeat of the same size keeps the same pointer, so it is still limited to every 600th time. Leavingpreparealone and relying onfail()'s own dedup is the right call, for the reason the description gives.CI: the only failure is
test_native_astc_texture_count.pyon windows-2022 part 1/2. Its fixture'sstd::scanfhits the CRT deprecation warning, which is treated as an error. This PR doesn't touch that test or anything it covers, so it isn't caused by this change. Everything else passes, including the DLSS/FSR 4 link check. The branch is 7 commits behind main but merges cleanly.github-sync referenced this pull request2026-11-12 06:22:54 +00:00