FidelityFX: a thin list's copy of the upscale description is whole (432 bytes, not 416) #290
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/290"
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 PastiiJay/klbf-lab. Originally posted by Joly0 on 2026-11-29T19:26:22Z.
With
VICTORY_THIN=1, the FSR upscale on a thin list is dispatched later from a copy of the title'sffxDispatchDescUpscale(dispatch_later, 29/11). The copy wasUPSCALE_SIZE= 416 bytes, but the description is 432: afterreset(+408) comecameraNear,cameraFar,cameraFovAngleVertical,viewSpaceToMetersFactor(+412..+427, the words 13-16 from +360 thatdlss_inputsandprepare_framegenalready read) andflags(+428).The PC DLL read the last four words from whatever followed the copy and refused about 28 % of the upscales with
FFX_API_RETURN_ERROR_PARAMETER(code 6, logged asffxDispatch on the host DLL (thin list) code=6). The output was left unwritten, so whole frames came out dark or wrong: the constant flickering withVICTORY_THIN=1and FSR. Lists recorded without THIN pass the title's own description and were never affected.Fix:
UPSCALE_SIZE= 432 (one constant, comment corrected).Measured (v26.11.16 + this;
VICTORY_THIN=1 VICTORY_PORT_CONSTANTS=1, FSR 4 Quality 720p→1080p + FSR 3.1 frame generation; 2-minute bench; RX 7800 XT, Ryzen 9 7945HX, 32 GB):For context, with the fix,
VICTORY_THIN=1 VICTORY_PORT_CONSTANTS=1vs defaults in the bench (two runs each, mixed order): 21.4-22.1 fps vs 15.0-16.1; seconds below 15 fps 1-3 vs 30-52; freezes over 200 ms 0-1 vs 2-6. No device losses. In ~5 minutes of real play with both switches: no T-poses.Base:
v26.11.16, becausestable-amddoes not havedispatch_lateryet; v26.11.15 has the same 416.Checked:
cargo clippy -p victory-hle --all-targetswith and without--features diagnostics(-D warnings), diag build ofvictory.cargo test -p victory-hledoes not compile on v26.11.16 before or after this (an error invictory-gpu:block_tablesnot found onLayout), so no test was run.🤖 Generated with Claude Code
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T19:50:52Z.
thanks a lot @Joly0, an analysis down to the field is rare and really appreciated! that's exactly the defect, it's fixed for the next version, and your write-up confirms the fix. you'll be credited for it.
Imported from PastiiJay/klbf-lab. Originally posted by Joly0 on 2026-11-29T20:08:57Z.
@PastiiJay Thanks, trying my best, i like the project, seems promising, but still needs a lot of work.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.