Scale memory and shader compilation across hardware, with frame-time testing #1500

Open
cebondlovu wants to merge 21 commits from upstream-pr/1500 into main
cebondlovu commented 2026-11-27 22:05:09 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by cebondlovu on 2026-11-27T22:05:09Z.


Behavior

Select discretionary resource limits across 8/16/32/64/128 GiB RAM, 8-24 GiB VRAM and OS-visible CPU capacity. The branch includes current main 368967f; no newer main changes were available when checked on 2026-11-29.

This implements resource policies, not verified minimum specifications or FPS results. It does not establish that the title fits in 8 GiB or reaches 60/120+ FPS.

Changes

  • Capacity-based speculative texture work, staging retention, strict snapshot byte limits and two-to-four ahead-present slots. Pressure thresholds scale so an 8 GiB host can recover without needing 5/6 GiB free.
  • When the bounded presentation pool fills, relay stage 2 waits only for its oldest occupied slot to finish landing, instead of draining later pending work. A completed slot is reused before allocating another one. Relay stage 1 and required resize/read-back synchronization retain their existing rules; no millisecond timeout bypasses GPU completion.
  • Physical-memory admission checks on larger hosts too, alongside commit headroom. Required one-shot work retains its existing rules.
  • Empty texture-pool retention scales with live WDDM budget and RAM, instead of jumping to 4 GiB above the old small-GPU threshold. Full-budget reports retain no empty blocks. These are idle-cache limits, not a hard limit on active allocations.
  • CPU/RAM-based compilation defaults shared by pre-warm and runtime. Dedicated screen workers share the total ceiling. No Ryzen/Intel model-name whitelist is introduced; explicit worker overrides remain available.
  • Automatic launchers stop forcing one worker count or one byte ceiling onto all hardware. The conservative Series S launcher remains available.
  • Strict pipeline warm-up rejects refused pipelines and failed/incomplete workers. Only verified completions are cached; legacy success records are rebuilt once. The watchdog now stays active after stdout closes until the worker exits, using a nonblocking exit poll so it can still terminate a hung compiler.
  • Bounds-only pipelines retain read-only depth access with an always-pass ordinary comparison and no depth writes; excluded/included pixel assertions are retained. Indirect-budget regressions now spend the budget exactly and preserve main's default oversized-job skip policy.
  • Windows compile/lint fixes keep diagnostic helpers feature-gated and retain GPU ownership, submission layout and descriptor snapshot coverage. No test was newly marked ignored.
  • Native title FSR controls, coupled timing overrides, bounded streaming bursts and nonblocking frame-time capture/analysis remain included.
  • Revised requested targets: 60+ low-end, 120+ mid/reference, 144+ high. Caps and labels are not performance improvements or benchmark evidence.

See hardware-scaling.md and performance-targets.md for limits and measurement requirements. The merge preserves main's current allocator and shader/water fixes; removed block-gate and dynamic-wait switches are not resurrected.

Validation

  • Passing pinned Windows run at current head: 38d43b0. Both workspace Clippy configurations passed with -D warnings, followed by workspace tests, PowerShell launcher/analyzer regressions and the optimized release build.
  • Workspace harnesses reported 1,076 passed, 0 failed, 46 existing ignored. One isolated child-process DLL-loading probe additionally passed. Ignored cases include benchmarks, external fixtures and special execution modes; some GPU tests also depend on available capabilities/tools. These counts are not gameplay or hardware/FPS qualification.
  • Passing coverage includes presentation-pool limits for each RAM tier, selecting the oldest required completion, and an isolated condition-variable regression that returns while later landings remain pending. It also covers RAM boundaries and overrides, 8-24 GiB budget controls, pressure recovery, strict cache byte limits, CPU/RAM compiler-worker combinations, bounded reporting, verified warm-up completion records, and a sleeping worker remaining killable by its watchdog.
  • CI set VICTORY_REQUIRE_DEPTH_BOUNDS_TEST=1, and depth_bounds_pipeline_loads_and_filters_draws passed. Missing device support or dxc would fail this run rather than silently skip that draw regression. The shader-worker watchdog subprocess test and repository asset-policy test also passed.
  • Local PowerShell regressions and diff/conflict-marker checks pass. Published Git trees are checked against locally reviewed trees; all changed paths were compared with the PR. Rust/Cargo is unavailable on the local execution host, so the Windows evidence above comes from hosted CI.
  • Upstream PR CI still requires maintainer approval; the passing fork run is independent evidence, not approval of an upstream run.
  • PortBridge's independent launcher and six standalone budget checks target the older 4351fb4 head. They do not validate the changed policies or gameplay here.

Testing request

No game files are included. Someone please test this fork for me.

Use your own game files and follow TESTING_REQUEST.md. Test the RAM/VRAM/CPU matrix, recording exact commit, hardware/driver, console profile, output/internal resolution, upscaling, RT, scene and cold/warm caches. Check memory growth, sustained frame times, texture arrival, missing draws, lighting/water, simulation speed and crashes. Share frame reports, normal logs and gameplay video. Do not upload game executables, assets, dumps or extracted shaders.

This Xbox compatibility build has no PC Ultra preset; graphics quality and gameplay must be verified separately. Prepared by Cebo Ndlovu (Leemutachii).

<!-- greyfinch-sync:fxceless/victory-fork:issue:5533695344 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1500). Originally posted by [cebondlovu](https://github.com/cebondlovu) on 2026-11-27T22:05:09Z. --- ## Behavior Select discretionary resource limits across 8/16/32/64/128 GiB RAM, 8-24 GiB VRAM and OS-visible CPU capacity. The branch includes current main `368967f`; no newer main changes were available when checked on 2026-11-29. This implements resource policies, not verified minimum specifications or FPS results. It does not establish that the title fits in 8 GiB or reaches 60/120+ FPS. ## Changes - Capacity-based speculative texture work, staging retention, strict snapshot byte limits and two-to-four ahead-present slots. Pressure thresholds scale so an 8 GiB host can recover without needing 5/6 GiB free. - When the bounded presentation pool fills, relay stage 2 waits only for its oldest occupied slot to finish landing, instead of draining later pending work. A completed slot is reused before allocating another one. Relay stage 1 and required resize/read-back synchronization retain their existing rules; no millisecond timeout bypasses GPU completion. - Physical-memory admission checks on larger hosts too, alongside commit headroom. Required one-shot work retains its existing rules. - Empty texture-pool retention scales with live WDDM budget and RAM, instead of jumping to 4 GiB above the old small-GPU threshold. Full-budget reports retain no empty blocks. These are idle-cache limits, not a hard limit on active allocations. - CPU/RAM-based compilation defaults shared by pre-warm and runtime. Dedicated screen workers share the total ceiling. No Ryzen/Intel model-name whitelist is introduced; explicit worker overrides remain available. - Automatic launchers stop forcing one worker count or one byte ceiling onto all hardware. The conservative Series S launcher remains available. - Strict pipeline warm-up rejects refused pipelines and failed/incomplete workers. Only verified completions are cached; legacy success records are rebuilt once. The watchdog now stays active after stdout closes until the worker exits, using a nonblocking exit poll so it can still terminate a hung compiler. - Bounds-only pipelines retain read-only depth access with an always-pass ordinary comparison and no depth writes; excluded/included pixel assertions are retained. Indirect-budget regressions now spend the budget exactly and preserve main's default oversized-job skip policy. - Windows compile/lint fixes keep diagnostic helpers feature-gated and retain GPU ownership, submission layout and descriptor snapshot coverage. No test was newly marked ignored. - Native title FSR controls, coupled timing overrides, bounded streaming bursts and nonblocking frame-time capture/analysis remain included. - Revised requested targets: **60+ low-end, 120+ mid/reference, 144+ high**. Caps and labels are not performance improvements or benchmark evidence. See [hardware-scaling.md](https://github.com/cebondlovu/victory-fork/blob/38d43b09ecbc5e235b1364636d61fba520562546/docs/hardware-scaling.md) and [performance-targets.md](https://github.com/cebondlovu/victory-fork/blob/38d43b09ecbc5e235b1364636d61fba520562546/docs/performance-targets.md) for limits and measurement requirements. The merge preserves main's current allocator and shader/water fixes; removed block-gate and dynamic-wait switches are not resurrected. ## Validation - **Passing pinned Windows run at current head:** [`38d43b0`](https://github.com/cebondlovu/victory-fork/actions/runs/46369503655). Both workspace Clippy configurations passed with `-D warnings`, followed by workspace tests, PowerShell launcher/analyzer regressions and the optimized release build. - Workspace harnesses reported **1,076 passed, 0 failed, 46 existing ignored**. One isolated child-process DLL-loading probe additionally passed. Ignored cases include benchmarks, external fixtures and special execution modes; some GPU tests also depend on available capabilities/tools. These counts are not gameplay or hardware/FPS qualification. - Passing coverage includes presentation-pool limits for each RAM tier, selecting the oldest required completion, and an isolated condition-variable regression that returns while later landings remain pending. It also covers RAM boundaries and overrides, 8-24 GiB budget controls, pressure recovery, strict cache byte limits, CPU/RAM compiler-worker combinations, bounded reporting, verified warm-up completion records, and a sleeping worker remaining killable by its watchdog. - CI set `VICTORY_REQUIRE_DEPTH_BOUNDS_TEST=1`, and `depth_bounds_pipeline_loads_and_filters_draws` passed. Missing device support or dxc would fail this run rather than silently skip that draw regression. The shader-worker watchdog subprocess test and repository asset-policy test also passed. - Local PowerShell regressions and diff/conflict-marker checks pass. Published Git trees are checked against locally reviewed trees; all changed paths were compared with the PR. Rust/Cargo is unavailable on the local execution host, so the Windows evidence above comes from hosted CI. - Upstream PR CI still requires maintainer approval; the passing fork run is independent evidence, not approval of an upstream run. - PortBridge's independent launcher and six standalone budget checks target the older `4351fb4` head. They do not validate the changed policies or gameplay here. ## Testing request **No game files are included. Someone please test this fork for me.** Use your own game files and follow `TESTING_REQUEST.md`. Test the RAM/VRAM/CPU matrix, recording exact commit, hardware/driver, console profile, output/internal resolution, upscaling, RT, scene and cold/warm caches. Check memory growth, sustained frame times, texture arrival, missing draws, lighting/water, simulation speed and crashes. Share frame reports, normal logs and gameplay video. Do not upload game executables, assets, dumps or extracted shaders. This Xbox compatibility build has no PC Ultra preset; graphics quality and gameplay must be verified separately. Prepared by Cebo Ndlovu (Leemutachii).
akimfomin commented 2026-11-28 00:53:57 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by akimfomin on 2026-11-28T00:53:57Z.


PortBridge checked 4351fb4 against main 2eade68 and the two Proton candidates. #885 combines cleanly with this head; #1489 conflicts at crates/victory-gpu/src/lib.rs. The useful first acceptance step is the existing low-memory-launcher.ps1 plus idle_pool_does_not_keep_four_gib_on_an_eight_gib_gpu. That checks policy before anyone interprets the FPS goals. AnyXboxX #550 is a concrete measured example of the separate native pool-budget control. PortBridge has offered your generated CPU checks to a Windows tester.

Exact comparisons and controls. If it helps this workflow, your team or agent can submit another public PR URL, target SHA and behavior to preserve via PortBridge. This is an optional, no-install check.

Independent check in response to your testing request: I ran the exact public launcher scripts and the unmodified budget module from 4351fb43edd626bd8fd450853a17f02ca0c1b6f7 on Windows. PowerShell 7.6.9 passed all four upscaler controls, override forwarding, settings restoration and missing-runner rejection. A separate synthetic runner verified that successful warm-up reaches run once, and warm-up exit 29 stops before run while restoring parent location and settings.

Rust 1.100.1 passed all four existing budget tests and two independent controls: the 16 GiB threshold is inclusive, and an 8,000 MiB budget goes from four spare blocks below 85% to two at and above 85%. This is direct execution of the pinned policy module and launcher, with a stub runner. Full-crate build and GPU performance remain open. Reproduce and inspect hashes.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7231272315 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1500#issuecomment-7231272315). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T00:53:57Z. --- PortBridge checked `4351fb4` against main `2eade68` and the two Proton candidates. #885 combines cleanly with this head; #1489 conflicts at `crates/victory-gpu/src/lib.rs`. The useful first acceptance step is the existing `low-memory-launcher.ps1` plus `idle_pool_does_not_keep_four_gib_on_an_eight_gib_gpu`. That checks policy before anyone interprets the FPS goals. [AnyXboxX #550](https://github.com/LooperSalty/AnyXboxX/pull/550#issuecomment-7230999315) is a concrete measured example of the separate native pool-budget control. PortBridge has offered your generated CPU checks to a Windows tester. [Exact comparisons and controls](https://github.com/akimfomin/PortBridge/tree/2b57ac90d61e3385a521dd70c1b7803bdb65fadc/audit/evidence/decision-followthrough/parallel-ops-wave-two-2026-11-28). If it helps this workflow, your team or agent can submit another public PR URL, target SHA and behavior to preserve via [PortBridge](https://github.com/akimfomin/PortBridge/issues/98). This is an optional, no-install check. Independent check in response to your testing request: I ran the exact public launcher scripts and the unmodified budget module from `4351fb43edd626bd8fd450853a17f02ca0c1b6f7` on Windows. PowerShell 7.6.9 passed all four upscaler controls, override forwarding, settings restoration and missing-runner rejection. A separate synthetic runner verified that successful warm-up reaches run once, and warm-up exit 29 stops before run while restoring parent location and settings. Rust 1.100.1 passed all four existing budget tests and two independent controls: the 16 GiB threshold is inclusive, and an 8,000 MiB budget goes from four spare blocks below 85% to two at and above 85%. This is direct execution of the pinned policy module and launcher, with a stub runner. Full-crate build and GPU performance remain open. [Reproduce and inspect hashes](https://github.com/akimfomin/PortBridge/blob/29a8ec04c5142e01d83832ae6bc0ab34b89c1f3f/audit/evidence/decision-followthrough/parallel-ops-wave-two-2026-11-28/victory-fork-1500.md).
cebondlovu commented 2026-11-28 11:30:20 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by cebondlovu on 2026-11-28T11:30:20Z.


Thanks for independently testing this and documenting the results. I appreciate the additional boundary checks. Yes, please pass the testing request to the Windows tester. Full-build results and gameplay checks for memory use, stuttering and visual issues would be especially helpful. Please share any failures against the exact commit tested.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7238595701 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1500#issuecomment-7238595701). Originally posted by [cebondlovu](https://github.com/cebondlovu) on 2026-11-28T11:30:20Z. --- Thanks for independently testing this and documenting the results. I appreciate the additional boundary checks. Yes, please pass the testing request to the Windows tester. Full-build results and gameplay checks for memory use, stuttering and visual issues would be especially helpful. Please share any failures against the exact commit tested.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1500:upstream-pr/1500'
git switch 'upstream-pr/1500'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1500'
git switch 'upstream-pr/1500'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1500'
git switch 'upstream-pr/1500'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1500'
git switch 'main'
git merge --squash 'upstream-pr/1500'
git switch 'main'
git merge --ff-only 'upstream-pr/1500'
git switch 'main'
git merge 'upstream-pr/1500'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1500
No description provided.