Trim idle upload caches when system commit runs low #822

Closed
github-bot wants to merge 1 commit from gh-pr/822/head into gh-pr/822/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-25 09:09 UTC · original
Kamiloj9:codex/commit-aware-upload-cache → main · +33 −31 · 5 files · 1 commits · closed without merging

Change

Use the lower of available physical RAM and process commit headroom when choosing the idle timeout for unreferenced texture staging and loose shadow copies. Keep the existing frame and ownership checks. Continue to trim the mapped pipeline library based on physical availability.

Verification

  • Unit coverage for low commit with ample physical RAM, normal and moderate pressure, physical pressure, and unavailable telemetry. Workspace check, asset policy and independent review passed.
  • In two local integrated RTX replays with the same 48 MiB staging setting, the baseline reached seven accepted presents after the first 3D marker and terminated on allocation failure. The adapted build logged 125 accepted presents after the marker and then lost the D3D12 device. This single comparison has variable Windows commit and scene timing. It establishes a successful longer replay, with device loss and rendering quality remaining unresolved.
**@⁠Kamiloj9** on GitHub · 2026-11-25 09:09 UTC · [original](https://github.com/fxceless/victory-fork/pull/822) `Kamiloj9:codex/commit-aware-upload-cache` → `main` · +33 −31 · 5 files · 1 commits · closed without merging ## Change Use the lower of available physical RAM and process commit headroom when choosing the idle timeout for unreferenced texture staging and loose shadow copies. Keep the existing frame and ownership checks. Continue to trim the mapped pipeline library based on physical availability. ## Verification - Unit coverage for low commit with ample physical RAM, normal and moderate pressure, physical pressure, and unavailable telemetry. Workspace check, asset policy and independent review passed. - In two local integrated RTX replays with the same 48 MiB staging setting, the baseline reached seven accepted presents after the first 3D marker and terminated on allocation failure. The adapted build logged 125 accepted presents after the marker and then lost the D3D12 device. This single comparison has variable Windows commit and scene timing. It establishes a successful longer replay, with device loss and rendering quality remaining unresolved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:51:55 +00:00
github-bot closed this pull request 2026-11-26 03:51:55 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:12 UTC · original

Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head 905cd59 into main 9376fd6 in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins never used, depth_written never read, in victory-gpu); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: 541 passed, 0 failed, 10 ignored, two runs (main alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/822#issuecomment-7159387033) Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `905cd59` into `main` `9376fd6` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins` never used, `depth_written` never read, in `victory-gpu`); with `--all-features` it fails with the same number of errors as `main` (4). This PR adds none and removes none. `cargo test --workspace --locked`: 541 passed, 0 failed, 10 ignored, two runs (`main` alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.