Stability: 4 GB launcher guardrails (Issue #1), idle list churn fix, VICTORY_AMBIENT_CLEAN, precompile filter, particle emitter digest #10

Open
github-bot wants to merge 1 commit from github-bot/gh-10 into main AGit
Owner

@⁠adib-cyber007 on GitHub · 2026-12-02 10:17 UTC · original
adib-cyber007:pr/9-4gb-launcher-guardrails-and-fixes → main · +143 −12 · 5 files · 1 commits · open

Addresses real 4 GB / 16 GB laptop failure modes observed in #1 (foxhound-20261202-131307.log, RTX 2050 4 GB) plus targeted upstream stability fixes (GPL-3.0):

  1. 4 GB external-launcher guardrails (apps/victory/src/defaults.rs): When running on ≤6 GiB GPUs inside external launchers (e.g., Foxhound), warns and clamps 4 GB-breaking overrides (VICTORY_LEVELS_ON_DEMAND=1 -> 0, VICTORY_RIPE_BLOCKS=0 -> 2, VICTORY_CARD_AWAKE=1 -> 0, plus warning on VICTORY_CARD_BUFFERS_MIN_KB < 1024). Prevents VICTORY_LEVELS_ON_DEMAND=1 from bypassing held_only()/VICTORY_TEXTURE_MAX_DIM and causing 5+ GB VRAM OOM → DXGI_ERROR_DEVICE_HUNG as seen in #1. Opt out with VICTORY_4GB_GUARD=0.
  2. Command-list churn fix (crates/victory-gpu/src/list.rs): Raises the configurable VICTORY_IDLE_LISTS floor from 448 to 640 (or any custom integer > 1, while 0 disables and VICTORY_AB still toggles). Idle lists hold 0 MB of scratch, whereas dropping recycled lists during loading bursts caused 2,969 allocator recreations (4.25 s / 10 s) in #1's log.
  3. Near-surface probe fix (crates/victory-gpu/src/ambient.rs): Ports VICTORY_AMBIENT_CLEAN=1 (DoubleGhosty/cool_fox b0906d48, NoLogicAlan #151) to clean up stale screen-probe mosaic/dark spots on faces and hair without ray tracing (opt-in so default visuals stay unchanged).
  4. Faster shader precompile (apps/victory/src/translate.rs): Ports may_hold_shaders (readmet3xt-lab/foxhound 87d1da3d, PR #262) so victory.exe shaders skips .ttpf/image/video/audio/metadata files before reading them into RAM.
  5. Missing GPU particle emitter digest (crates/victory-shader/src/emit/mod.rs): Adds the 4th widened model particle emitter digest (GpuParticleEmit:CS_Emit_Dynamic_Model_AttachMesh, readmet3xt-lab/foxhound 10c5f8b5) so it translates instead of being dropped on 32-lane NVIDIA cards.

Verification

  • ambient::tests::the_passes_build (compiling all 5 default + #define CLEAN compute passes on D3D12), all 17 victory bin tests (including defaults::tests::low_vram_clamps_target_unsafe_launcher_settings), and default + --features diagnostics builds passed with zero new warnings.
  • Live behavior needs verification on an RTX 3050 / RTX 2050 4 GB run.
**@⁠adib-cyber007** on GitHub · 2026-12-02 10:17 UTC · [original](https://github.com/ImTaneax/VIctory-RTX3050-4gb/pull/10) `adib-cyber007:pr/9-4gb-launcher-guardrails-and-fixes` → `main` · +143 −12 · 5 files · 1 commits · open Addresses real 4 GB / 16 GB laptop failure modes observed in #1 (`foxhound-20261202-131307.log`, RTX 2050 4 GB) plus targeted upstream stability fixes (GPL-3.0): 1. **4 GB external-launcher guardrails (`apps/victory/src/defaults.rs`):** When running on ≤6 GiB GPUs inside external launchers (e.g., Foxhound), warns and clamps 4 GB-breaking overrides (`VICTORY_LEVELS_ON_DEMAND=1 -> 0`, `VICTORY_RIPE_BLOCKS=0 -> 2`, `VICTORY_CARD_AWAKE=1 -> 0`, plus warning on `VICTORY_CARD_BUFFERS_MIN_KB < 1024`). Prevents `VICTORY_LEVELS_ON_DEMAND=1` from bypassing `held_only()`/`VICTORY_TEXTURE_MAX_DIM` and causing 5+ GB VRAM OOM → `DXGI_ERROR_DEVICE_HUNG` as seen in #1. Opt out with `VICTORY_4GB_GUARD=0`. 2. **Command-list churn fix (`crates/victory-gpu/src/list.rs`):** Raises the configurable `VICTORY_IDLE_LISTS` floor from `448` to `640` (or any custom integer `> 1`, while `0` disables and `VICTORY_AB` still toggles). Idle lists hold `0 MB` of scratch, whereas dropping recycled lists during loading bursts caused 2,969 allocator recreations (4.25 s / 10 s) in #1's log. 3. **Near-surface probe fix (`crates/victory-gpu/src/ambient.rs`):** Ports `VICTORY_AMBIENT_CLEAN=1` (`DoubleGhosty/cool_fox` `b0906d48`, NoLogicAlan #151) to clean up stale screen-probe mosaic/dark spots on faces and hair without ray tracing (opt-in so default visuals stay unchanged). 4. **Faster shader precompile (`apps/victory/src/translate.rs`):** Ports `may_hold_shaders` (`readmet3xt-lab/foxhound` `87d1da3d`, PR #262) so `victory.exe shaders` skips `.ttpf`/image/video/audio/metadata files before reading them into RAM. 5. **Missing GPU particle emitter digest (`crates/victory-shader/src/emit/mod.rs`):** Adds the 4th widened model particle emitter digest (`GpuParticleEmit:CS_Emit_Dynamic_Model_AttachMesh`, `readmet3xt-lab/foxhound` `10c5f8b5`) so it translates instead of being dropped on 32-lane NVIDIA cards. ### Verification - `ambient::tests::the_passes_build` (compiling all 5 default + `#define CLEAN` compute passes on D3D12), all 17 `victory` bin tests (including `defaults::tests::low_vram_clamps_target_unsafe_launcher_settings`), and default + `--features diagnostics` builds passed with zero new warnings. - Live behavior needs verification on an RTX 3050 / RTX 2050 4 GB run.
Addresses real 4 GB / 16 GB laptop failure modes seen in Issue #1 (RTX 2050 4 GB under Foxhound launcher) plus upstream fixes (GPL-3.0):
- defaults.rs: warns and clamps 4 GB-breaking external launcher overrides (VICTORY_LEVELS_ON_DEMAND=1 -> 0, VICTORY_RIPE_BLOCKS=0 -> 2, VICTORY_CARD_AWAKE=1 -> 0; opt out with VICTORY_4GB_GUARD=0) that caused 5,077 MB / 3,367 MB VRAM OOM -> DXGI_ERROR_DEVICE_HUNG.
- list.rs: raises configurable VICTORY_IDLE_LISTS floor from 448 to 640 (idle lists hold 0 MB scratch) to eliminate heavy command-allocator churn (~4.2 s / 10 s in Issue #1 logs).
- ambient.rs: ports VICTORY_AMBIENT_CLEAN=1 (DoubleGhosty/cool_fox b0906d48, NoLogicAlan #151) fixing stale screen-probe tiles on faces/hair without ray tracing.
- translate.rs: ports may_hold_shaders extension filter (foxhound 87d1da3d, PR #262) skipping texture/media/metadata files before reading during victory shaders precompile.
- emit/mod.rs: adds the 4th widened GPU particle emitter digest (foxhound 10c5f8b5, GpuParticleEmit:CS_Emit_Dynamic_Model_AttachMesh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 10:22:01 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/10/head:github-bot/gh-10'
git switch 'github-bot/gh-10'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-10'
git switch 'github-bot/gh-10'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-10'
git switch 'github-bot/gh-10'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-10'
git switch 'main'
git merge --squash 'github-bot/gh-10'
git switch 'main'
git merge --ff-only 'github-bot/gh-10'
git switch 'main'
git merge 'github-bot/gh-10'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.