Residency & stability: tighten 16 GB/4 GB pool caps, always-on DRED page-fault logs, GDKX vtable stubs #5

Open
github-bot wants to merge 3 commits from github-bot/gh-5 into main AGit
Owner

@⁠adib-cyber007 on GitHub · 2026-12-02 08:40 UTC · original
adib-cyber007:pr/4-low-ram-vram-residency-and-stability → main · +186 −43 · 7 files · 3 commits · open

Three focused memory-pressure and stability commits (all GPL-3.0 credited):

  1. 16 GB RAM / 4 GB VRAM staging & texture pool caps (DoubleGhosty/cool_fox 2c7a83fd, NoLogicAlan / #150 + 4 GB pool fix):
    • residency::allow_staging_growth stops committing new staging blocks outside bakes during host memory pressure.
    • pool::room caps staging spares at 2 on ≤32 GB RAM (down from 4), 1 under pressure, 0 at critical commit, and STAGING_KEPT otherwise.
    • pool::spares drops empty texture spare blocks to 0 on ≤6 GiB cards once VRAM reaches 85% instead of holding 32 MiB of idle 16 MiB heaps on a full 4 GB GPU.
    • resource::let_go_idle drops idle texture reserves during host memory pressure.
  2. Always-on DRED page-fault tracking & crash-log flush (trustno1-coder/VIctory-NVIDIA a5a0f331): Keeps DRED page-fault data in all builds (VICTORY_D3D12_DRED=0 disables), logs GetDeviceRemovedReason + faulting address unconditionally in log_removal_context(), and flushes stdout/stderr before TerminateProcess in host_gpu_failed so 0x887A0007 resets stop leaving empty crash reasons.
  3. GDKX vtable stubs (DoubleGhosty/cool_fox 164e130f): Implements dstorage Factory/File/Queue gaps (SetCpuAffinity, SetDebugFlags, Close, GetHandle, Query) and speech accessibility stubs to prevent null-vtable crashes.

Verification

  • All pool::tests (including new 4 GB VRAM spares == 0 and staging_spares checks), residency::tests, and 19 dstorage/speech tests passed with zero new warnings.
  • Default and --features diagnostics builds compile cleanly.
  • Live RAM/VRAM behavior needs measurement on a game run.
**@⁠adib-cyber007** on GitHub · 2026-12-02 08:40 UTC · [original](https://github.com/ImTaneax/VIctory-RTX3050-4gb/pull/5) `adib-cyber007:pr/4-low-ram-vram-residency-and-stability` → `main` · +186 −43 · 7 files · 3 commits · open Three focused memory-pressure and stability commits (all GPL-3.0 credited): 1. **16 GB RAM / 4 GB VRAM staging & texture pool caps** (`DoubleGhosty/cool_fox` `2c7a83fd`, NoLogicAlan / #150 + 4 GB pool fix): - `residency::allow_staging_growth` stops committing new staging blocks outside bakes during host memory pressure. - `pool::room` caps staging spares at `2` on ≤32 GB RAM (down from 4), `1` under pressure, `0` at critical commit, and `STAGING_KEPT` otherwise. - `pool::spares` drops empty texture spare blocks to `0` on ≤6 GiB cards once VRAM reaches 85% instead of holding 32 MiB of idle 16 MiB heaps on a full 4 GB GPU. - `resource::let_go_idle` drops idle texture reserves during host memory pressure. 2. **Always-on DRED page-fault tracking & crash-log flush** (`trustno1-coder/VIctory-NVIDIA` `a5a0f331`): Keeps DRED page-fault data in all builds (`VICTORY_D3D12_DRED=0` disables), logs `GetDeviceRemovedReason` + faulting address unconditionally in `log_removal_context()`, and flushes stdout/stderr before `TerminateProcess` in `host_gpu_failed` so `0x887A0007` resets stop leaving empty crash reasons. 3. **GDKX vtable stubs** (`DoubleGhosty/cool_fox` `164e130f`): Implements `dstorage` Factory/File/Queue gaps (`SetCpuAffinity`, `SetDebugFlags`, `Close`, `GetHandle`, `Query`) and `speech` accessibility stubs to prevent null-vtable crashes. ### Verification - All `pool::tests` (including new 4 GB VRAM `spares == 0` and `staging_spares` checks), `residency::tests`, and 19 `dstorage`/`speech` tests passed with zero new warnings. - Default and `--features diagnostics` builds compile cleanly. - Live RAM/VRAM behavior needs measurement on a game run.
Ports DoubleGhosty/cool_fox 2c7a83fd (NoLogicAlan / #150, GPL-3.0) and adds 4 GB VRAM spare-block release:
- residency::allow_staging_growth stops growing new staging blocks outside bakes during host memory pressure.
- pool::room caps staging spares at 2 on <= 32 GB RAM, 1 under pressure, 0 at critical commit, and STAGING_KEPT generally.
- pool::spares returns 0 empty texture blocks on <= 6 GiB cards once VRAM usage reaches 85% instead of holding 32 MiB of idle spare heaps.
- resource::let_go_idle drops idle texture reserves under host memory pressure.
Adapted from trustno1-coder/VIctory-NVIDIA a5a0f331 (GPL-3.0). Enables DRED page-fault tracking by default (VICTORY_D3D12_DRED=0 disables), logs GetDeviceRemovedReason and faulting address unconditionally in log_removal_context(), and flushes stderr/stdout before TerminateProcess in host_gpu_failed.
Port of DoubleGhosty/cool_fox 164e130f (GPL-3.0). Implements Factory::SetCpuAffinity, Factory::SetDebugFlags, File::Close, File::GetHandle, Queue::Query, and closed-caption/high-contrast/STT accessibility stubs to prevent null-vtable crashes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 08:41:47 +00:00
github-bot changed title from Pr/4 low ram vram residency and stability to Residency & stability: tighten 16 GB/4 GB pool caps, always-on DRED page-fault logs, GDKX vtable stubs 2026-12-02 10:22:03 +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/5/head:github-bot/gh-5'
git switch 'github-bot/gh-5'

Merge

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