Fix black faces/objects VRAM admission, Bink movie lease, FSR3 handling, and clzero stub reachability #669
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!669
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-669"
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?
@ghost on GitHub · 2026-11-28 03:14 UTC · original
main→main· +1104 −89 · 9 files · 4 commits · merged 2026-11-28 19:39 UTCSummary
Rebases v9-derived fixes onto upstream
v2026.11.27.10:victory-gpu): Admits never-before-seen texture slots just over the room line within a bounded 5 s window using their real byte size instead of a flat 64 MiB reserve, fixing black faces/objects while preserving the 80% VRAM ceiling and whole-card guard.victory-gpu,victory-hle): Tracks Bink open/close/skip exports and recognizesA8_UNORMalpha alongsideR8_UNORMluma planes, adding an expiring lease (by presents + wall-clock cap) so stale movie handles do not permanently disable frame generation.victory-gpu): Keeps FSR3 armed across cutscene movie classifications instead of retiring its context.victory-loader): Searches multiple reachable stub regions duringclzeroemulation patching rather than failing if the first region is full or out of range.Changed Files
crates/victory-gpu/src/draw.rscrates/victory-gpu/src/host.rscrates/victory-gpu/src/queue.rscrates/victory-gpu/src/resource.rscrates/victory-gpu/src/streamline.rscrates/victory-gpu/src/streamline/fsr.rscrates/victory-gpu/src/texture.rscrates/victory-hle/src/modules/bink.rscrates/victory-loader/src/console_insn.rs@ghost on GitHub · 2026-11-28 03:22 UTC · original
Pre-built test binary (
victory.exe, SHA-256:E00EE0BF414AF980EA73205B6D859DA6E4B24B7C8988BDBE61A8EBAE693312F9) is available on my fork's release here:https://github.com/Mit1123/VIctory-NVIDIA/releases/tag/fix
@CuteBooty on GitHub · 2026-11-28 05:33 UTC · original
Reading notes on this PR from the angle of an 8 GB card (RTX 3070, frame generation on, the card at 90-97 % of its DXGI budget in play). I built the admission part (25b3b5ce9's
draw.rsandresource.rshunks and the meter hunk inhost.rs) onto main63b902fe1with the admissions switched off, so nothing below comes from a run with them on. These are notes from reading the code, by more than one reviewer:heap_textures,placed_lenstarts at 1 and is replaced only forView::Placed(false, …); a failedplaced_bytes_fromalso leaves 1. A title-filled view of another kind can pass both the window and the whole-card check at that estimate.usedpass the budget. A texture whose size fits in the summed free space of the texture blocks passes even whenused >= budget, but that space can be fragmented and the pool can grow by a whole 64 MiB block. The_countedargument (render-target and card-buffer reserves) is not used infirst_upload_decisionorfirst_upload_headroom_from. On a card that already runs near its budget, this is the part I would worry about.targets_keptmoves from half to a quarter of the reserve, so the render-target reserve is released once the targets reach a quarter of it instead of half (with our 2,048 MiB setting: 512 MiB instead of 1,024), also with both switches at 0.present_begins, a present with a Bink call has frame generation off, held for some presents after the movie's last call, with no switch. So an in-game TV that is playing would switch DLSS-G on and off.first_upload_decisionis gatedcfg(any(windows, test))but callsroom_line, which iscfg(windows)only. On Windows the build and the existing tests pass (I built it on that base).With
VICTORY_TEXTURE_ROOM_PERCENT=85, the ceilingmin(line + FIRST_UPLOAD_MB, 80 % of budget)is always the 80 % term, so on such a setup the hard stop is the whole budget only. If it helps, I can run the admissions on this card gently (VICTORY_FACE_HEADROOM_MB=0,VICTORY_TEXTURE_FIRST_UPLOAD_WINDOW_MB=128) and report the new meter lines.These notes were prepared with AI assistants (Claude Code and Codex) reading the code; nothing here was measured with the admissions on.
@ghost on GitHub · 2026-11-28 11:36 UTC · original
@CuteBooty
Thanks for the thorough review and for offering to test this on an 8 GB RTX 3070 near budget.
That would definitely help running with
VICTORY_FACE_HEADROOM_MB=0andVICTORY_TEXTURE_FIRST_UPLOAD_WINDOW_MB=128and sharing the new meter lines would give great real world signal.I put these changes together with an AI coding assistant, so I'm going to walk through each of the points you flagged (
placed_lenfallback, summed free space vs. fragmentation /_countedreserves, oversized first requests spending the window, decision vs. completed upload meter counts,targets_keptquarter-reserve behavior, Bink lease toggling on things like in-game TVs, thecfg(any(windows, test))vscfg(windows)gate onroom_line, and the 80% cap whenVICTORY_TEXTURE_ROOM_PERCENT=85) and see how we should tighten them.@ghost on GitHub · 2026-11-28 19:55 UTC · original
@CuteBooty
Thanks for the detailed code review notes on the 8 GB / high-budget DXGI path and the
VICTORY_FACE_HEADROOM_MB=0/VICTORY_TEXTURE_FIRST_UPLOAD_WINDOW_MB=128test suggestion. I pushed the updated branch and pre-builtvictory.exerelease so you can test and inspect the current state directly:https://github.com/Mit1123/VIctory-NVIDIA/tree/our-quality720-facefix(commit456a8f86ed04986fb8b0c725fac1991dea8677c2)victory.exe):https://github.com/Mit1123/VIctory-NVIDIA/releases/tag/v2026.11.28.03-patchedvictory.exeSHA-256:B62F563E67B772451452E87E905A9DA2B219F684B8D3BEF66CD40CA0AF87513B