Frame generation: no 14 fps lock; 100 ms pipeline wait; free given-up render targets; retry OOM pipelines; release memory logs #152
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!152
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-152"
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?
@AVD-appezhax on GitHub · 2026-11-30 18:38 UTC · original
AVD-appezhax:fix/framegen-lock-and-drop-reasons→main· +9 −4 · 2 files · 49 commits · closed without mergingThree commits, each standing alone.
1. Card awake left out while Reflex paces frames (fixes the 14 fps lock, #20)
The launcher sets
VICTORY_CARD_AWAKE=1. With frame generation, Reflex low latency is on. Reflex measures GPU time from the card's queues and counts the endless compute job ofhost/awake.rs, so every frame looks GPU-bound and Reflex sleeps inside the present. In about half of the starts the game then holds 14.0 fps (71.4 ms) for the whole session.The job is now left out while Reflex is on, and the log says so once.
VICTORY_CARD_AWAKE=alwayskeeps the old behaviour. This is a port of trustno1-coder/VIctory-NVIDIA#1938.Tested: RTX 5070 12 GB, 1440p, DLSS Quality, 4x frame generation.
2. Pipeline wait budget default: 500 ms down to 100 ms
The first crash or explosion of a kind froze the game for 490 ms a frame, and up to 2.5 s. Each freeze lined up with "first bind" / "shader translated" lines. At 100 ms, a draw whose pipeline isn't ready is dropped for a frame or two instead.
VICTORY_SCREEN_WAIT_MS), so the lighting tables are untouched.VICTORY_PIPELINE_WAIT_MS=500restores the old wait.3. Drop reasons and card memory in release logs (counting only)
What these lines showed in a 25-minute session (RTX 5070, budget ~10.7 GB), which is relevant to #133:
7f61193d2c0e5f22was refused with E_OUTOFMEMORY during loading and is never retried, so it is missing for the whole session.4. Render-target copies whose title memory was given up are let go
The idle sweep takes only textures the title fills, so host copies of targets, depth and unordered-access textures the title placed in its own memory stayed on the card after the title unmapped that memory. They grew by 880 MB in 23 minutes on a 12 GB card (table above), which put the card over its budget, after which DLSS failed and frame generation switched itself off.
Such a copy now goes when all of these hold:
The next use makes it again. Textures with a twin are left alone.
VICTORY_TARGETS_GIVEN_UP=0keeps the old behaviour.The targets census, until now diagnostics-only, is logged once a minute with what was let go.
5. Pipelines refused for want of memory are asked again
Compute
7f61193d2c0e5f22was refused with E_OUTOFMEMORY during loading, and the refusal was kept, so its dispatch was dropped every frame for the whole session. Such a refusal is now asked again 3 s later, up to 5 times. Draws do not wait for it meanwhile. Other refusals stay final.4 and 5 are not yet tested in game: clippy is clean on both feature sets and the 471 victory-gpu tests pass. Results will follow in a comment.
Checks
cargo clippy -p victory-gpu --all-targets -- -D warnings, with and without--all-features: clean.cargo test -p victory-gpu --lib: 471 passed, 0 failed, run before the third commit. That commit only changes a default value and comments, and was clippy-checked.🤖 Generated with Claude Code
@readmet3xt-lab on GitHub · 2026-12-01 01:36 UTC · original
A note on why this shows as closed: GitHub closed every open pull request by itself when main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), and they cannot be reopened. This is not a rejection.
Your change is in the batch being tested for the next release, carried over as one commit with you as its author. Nothing is needed from you now; the result will be posted here.
Frame generation: no 14 fps lock; 100 ms pipeline wait; drop reasons and card memory in release logsto Frame generation: no 14 fps lock; 100 ms pipeline wait; free given-up render targets; retry OOM pipelines; release memory logs@AVD-appezhax on GitHub · 2026-12-01 13:27 UTC · original
Results of a 28-minute run (RTX 5070 12 GB, 1440p, DLSS Quality, 4x frame generation), and two more commits
Commit 4 (let go given-up render targets) did nothing here. The targets census in the new minute line shows 0 placed targets and 0 in unmapped memory. The render-target copies the title still holds are what grow:
None of them was idle 30 s and unheld. The change stays, because it is correct where it applies, but it is not the fix for this growth. The new e1bf3a5 logs the eight biggest kinds by shape and format once a minute, to name them.
Commit 5 (retry pipelines refused for want of memory) did not help this one.
7f61193d2c0e5f22was refused with E_OUTOFMEMORY at 12:52, when the card held 2.3 GB of 11.2. That makes it not a memory problem. It isweatherParticle:CS_BeginUpdate: NVIDIA's compiler rejects an atomic subtraction on group-shared memory (see trustno1-coder/VIctory-NVIDIA#4449).250e7f4 ports their fix (#1939 / Marvisak/VIctory#3619): on NVIDIA such atomics become a compare-exchange loop, and the setting is part of the shader cache key. One change from upstream: the vendor comes from the adapter the host device is actually made on (
hardware_adapter), not fromEnumAdapters1(0), which can be an integrated GPU. Its unit test passes. It is not yet confirmed in game.The card still ends over its budget (12.5 of 11.0 GB). DLSS then reports "out of VRAM" and frame generation switches itself off in town.
Pull request closed