Skip to content

VIctory-Fast robustness ideas: strict fence waits, texture budget eviction (switches off) - #19

Open
oceansde012 wants to merge 4 commits into
mainfrom
claude/project-thread-2pgxwd
Open

oceansde012 wants to merge 4 commits into
mainfrom
claude/project-thread-2pgxwd

Conversation

@oceansde012

Copy link
Copy Markdown
Owner

Requested by Vlad · project thread

From a full diff of maren-halv/VIctory-Fast against our base f4b48ad, looking for critical fixes (crash, hang, leak, corruption). Almost every VF fix repairs code VF itself added. Two ideas apply to our base and are not in PRs #2–#18. Both are clean reimplementations (code by DeepSeek, VF code not copied: its sync commits have unverifiable origin). Both are off by default, so behaviour and picture are unchanged when off.

Changes

  1. VICTORY_FENCE_STRICT=1 (host.rs, idea from VF 5b163a5): after device removal GetCompletedValue() returns u64::MAX. Today the late helper skips a failed wait and settles flights as if done, and the opt-in relay retries every 1 ms forever. With the switch on, both end the run through fail(), which logs the removal reason. This is for robustness and diagnosis, no fps change.
  2. VICTORY_TEXTURE_BUDGET_EVICT=1 (resource.rs, idea from VF d32bc4f): VICTORY_TEXTURE_BUDGET_MB only blocked new host texture copies. With the switch on, let_go_idle also applies vram_keep(limit, filled) and keeps the tighter policy, so idle textures are let go before VRAM is full. This matters for our 16 GB peaks. It only has an effect together with VICTORY_TEXTURE_BUDGET_MB.

Checks

  • Cloud: CARGO_FEATURE_PURE=1 cargo check -p victory-gpu --all-targets --target x86_64-pc-windows-msvc is OK, with the same warning count as base (12 + 6).
  • Unit tests fence_reached_rejects_removed_device and budget_evict_tests added. Not run: the Linux test build of victory-gpu already fails on base, so they need the PC.
  • Not run on the PC: no tests, no game (paused by Vlad).

Report: project file reports/victory-fast-2026-11-28.md (section "Full diff vs our base").


Generated by Claude Code

oceansde012 and others added 2 commits November 28, 2026 14:18
With VICTORY_FENCE_STRICT=1 the late helper and the relay treat a fence
value of u64::MAX (device removed) or a failed SetEventOnCompletion /
wait as fatal and end the run through fail(), which logs the removal
reason. Off: unchanged (late helper skips the wait, relay retries every
1 ms forever). Idea from VIctory-Fast 5b163a5; clean reimplementation,
code by DeepSeek.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRoLyAVcnXFVgv6jtri
…T, off)

VICTORY_TEXTURE_BUDGET_MB only stopped new host texture copies at the
limit. With VICTORY_TEXTURE_BUDGET_EVICT=1 let_go_idle also applies
host::vram_keep(limit, filled) and keeps the tighter of the two
policies, so idle textures go before the card's memory is full.
Off: unchanged. Idea from VIctory-Fast d32bc4f; clean reimplementation,
code by DeepSeek.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRoLyAVcnXFVgv6jtri
@oceansde012 oceansde012 self-assigned this Nov 28, 2026
claude and others added 2 commits November 28, 2026 14:20
…y DeepSeek)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRp6ZXFGoy77zGqibMF
(cherry picked from commit 62cb135)
The previous commit put the new helpers between room()'s doc comment
and room(); move the comment back. No code change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRoLyAVcnXFVgv6jtri

Copy link
Copy Markdown
Owner Author

CI check is red, but none of the failures are in this PR's lines. All of them are clippy -D warnings findings (Rust 1.98) in base code. The same check is red on every open PR, #12–#18.

  • I ported the existing fix for the victory-formats texture test (clippy::precedence, 62cb135 from PR Integration: PR #5–#11 merged, all switches off by default #12) here as 68cf38c.
  • What still fails is base code: manual_is_multiple_of (send.rs, shadow.rs, watch.rs, land/tests.rs, titlewrite/decode.rs), dead code in host/indirects.rs, transmute annotations in victory-loader/write_sites.rs, inconsistent_digit_grouping in queue.rs, and more.
  • Local cargo clippy -p victory-gpu --all-targets (Windows target) gives the same count on f4b48ad and on this branch: 35 = 35.

Fixing base clippy belongs in its own PR. Each of these PRs keeps hitting it, so I'll suggest that to Vlad.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants