Pipeline workers: keep slow-build limits after first-use promotion under memory pressure #56
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#56
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@npalissi on GitHub · 2026-11-26 00:35 UTC · original
Problem
A pipeline already classified as slow can bypass the slow-build concurrency limit as soon as a draw or dispatch asks for it. Several expensive driver builds can then overlap during world loading. The render wait budget controls how long the caller waits, while the builds can keep running and retaining memory.
Evidence from this fork
The scheduler comments describe a run where all 16 workers were occupied by slow builds during loading. Only 97 pipelines were made in 20 seconds. The first 90 seconds in the world ran at 0.5 to 1.6 seconds per frame, with up to 2,900 draws omitted per frame. The fork's findings also report stretches of frames over 200 ms coinciding with pipeline creation. These observations do not measure the memory used by the promoted jobs specifically. Scheduler measurements · Fork findings
Reproduction on
0a435665slow_now.was_slow == false. The unchanged queue and test passed in a standalone Windows Rust harness without opening D3D12 or running the title.#34 reports device loss near concurrent compute builds and low available physical memory in another run. That report does not establish a causal link. #43 discusses prebuilding and cache limits. This proposal concerns concurrent cold builds.
Proposed fix
Add an opt-in low-memory mode that keeps urgency and build cost separate. Preserve first-use and screen priority, but count known-slow cold builds across all priorities against a limit derived from the configured worker count. Give requested jobs the next free slow slot ahead of speculative work. Keep cache hits and eligible quick jobs moving while a slow miss is deferred, including when it stands at the head of its queue.
With one slow slot, a requested pipeline may take longer to become available if another slow build is already running. The goal is to reduce peak system commit and stalls from concurrent compilation. One large build can still exhaust memory. If measurements justify a follow-up for unseen keys, consider reducing speculative admission when Windows commit headroom is low.
Acceptance tests
The queue behavior is reproduced. The effect on VIctory's in-game memory and freeze duration still needs a hardware comparison. AI-assisted source review and drafting.
@JoeY54 on GitHub · 2026-11-26 06:03 UTC · original
Hi @avatarmanz and @npalissi,
I'd like to contribute to this fork, including actual implementation work rather than only hardware testing.
My available hardware includes:
I've previously contributed independent synthetic GPU validation to FrameLab and VIctory.
Is #56 still available? I'd be interested in implementing the pipeline scheduling improvements with deterministic regression tests and synthetic contention and memory benchmarks. I'm also interested in the texture streaming work described in #118, if it is unassigned.
Alternatively, I can provide independent hardware validation for #98, #120, #119 and other open PRs.
Is there a preferred claim process, or are there other unassigned development tasks you would recommend?
I use Codex and Claude Code for AI-assisted development and testing. I'll work with public licensed source and original synthetic test data, coordinate with existing contributors, and provide reproducible results.
Thank you!
@avatarmanz on GitHub · 2026-11-26 06:14 UTC · original
Hi Joseph, you can add me on Discord @ avatarmanz and we can chat there.
If that doesn't work because of Discord privacy settings can you please
email me your Discord name and I'll add you as a friend there.
My email address is @.***
EDIT: Is there a reason you want to contribute to this vs creating a fork?
On Thu, Nov 26, 2026 at 12:04 AM Joseph Yang @.***>
wrote:
@JoeY54 on GitHub · 2026-11-26 08:14 UTC · original
Hi @avatarmanz @npalissi,
Following up on my earlier comment and our Discord chat: I'd like to claim this issue for implementation. If you'd rather keep it with npalissi or someone else, just say so and I'll switch to verification only.
Plan (based on
main@39031cb;pipeline/make.rsis unchanged since0a435665):I'll coordinate with #125, #144 and #128, which touch the same worker code, and rebase onto whichever lands first. Work will go on a separate branch and come back as a draft PR. Only public source and synthetic tests are used; no game data.
Generated by Claude Code