Fix command-list upload crashes and document SM86 0.4.1 setup #295
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!295
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-295"
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?
@Sladewww on GitHub · 2026-12-01 10:52 UTC · original
Sladewww:fix/sm86-041-frame-generation→main· +96 −17 · 5 files · 1 commits · closed without mergingBackground
DLSSG for SM86 is a third-party compatibility mod that enables DLSS Frame
Generation on older NVIDIA GPUs, including RTX 30-series cards such as the
RTX 3080 Ti. FoxHound already integrates DLSS Frame Generation through NVIDIA
Streamline. With SM86 0.4.1 installed separately, that existing integration
was able to produce 2× frame generation on an RTX 3080 Ti using Streamline
2.14.16.
Testing this setup exposed a FoxHound upload allocation crash that also
reproduced with frame generation disabled. This PR fixes the underlying
allocation issue and documents the optional SM86 setup. The mod remains a
separate install, and 4× gameplay still needs verification.
Problem
FoxHound could run out of contiguous virtual address space for command-list
uploads. When the allocator returned null, the game's BVH builder could crash.
This was reproduced at 4K with DLSS Balanced on an RTX 3080 Ti, with frame
generation both enabled and disabled.
Changes
size needed for the request.
range from 128 GiB to 256 GiB.
frame generation multipliers.
Verification
reported 205 passed and 2 ignored.
on the affected RTX 3080 Ti.
Gameplay at 4× still needs verification.
@readmet3xt-lab on GitHub · 2026-12-01 12:08 UTC · original
Thanks, the diagnosis is right: when the window below 2^37 had no room for a list-upload arena, the allocator returned null and the title stopped.
Where this stands against the batch for the next release: #189, which is on that batch, changes the same file and removes the null from the other side. It reserves 32 pieces of 64 MiB at the top of the window first thing in a run, before anything else can fill it, and when no room is found an upload now comes from the process heap with a warning instead of returning null. So the crash you hit should be gone in the next release without this change, and this pull request no longer merges (both rewrite
upload.rs).What is still worth having from it, on top of #189:
MEMORY_PAGESis a translator constant, so every shader is translated again, and the address directory doubles. It belongs with the ray-tracing work and needs a before/after of the PC's memory and of the count of shaders that translate. Please keep it as its own pull request.The SM86 notes in
docs/dlss.mdare fine as documentation of an optional third-party setup; they can come with either part.@readmet3xt-lab on GitHub · 2026-12-01 12:20 UTC · original
A correction to my note above, after reading #189's code more closely: part 1 (the retry with smaller arenas) is not as simple over #189 as I wrote.
After #189,
upload::reservemakes no search of the window for one second after a search failed. That rule is there on purpose: a search of a full window takes long in the kernel, and without it thousands of searches a frame gave 30-second frames and the title's watchdog. A retry loop that callsreserveagain with a smaller size right after a failure is therefore refused by that rule, and one that goes around it brings the long searches back.A shape that would fit: when the search for a whole 4 MiB arena fails, make exactly one more search in the same call, for just the blocks the request needs, before the failure is noted; so at most two searches a second where there is one now. If you rebase part 1, please build it that way, with a test that counts the searches made across repeated failing requests. I will not port it myself for now; with the heap fallback in place nothing crashes, and it only matters with the ray-tracing builder on.
Pull request closed