mega PR closeout, XGDK memory hints, stuttering no more. #1967

Open
edwardteach247 wants to merge 49 commits from upstream-pr/1967 into main
edwardteach247 commented 2026-11-29 04:37:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by edwardteach247 on 2026-11-29T04:37:06Z.


Baseline from main 11/28/2026 (Cycle 1) vs. Current Results

R7 7700x 5ghz + 3080 TI 12gb Vram + 32gb DDR5
Tested on NVIDIA RTX 3080 Ti (12 GB VRAM), 8-Core / 16-Thread CPU, 32 GB RAM, Windows 11 at 1440p (2458×1353).

Metric Baseline (Cycle 1 f6e1754) Cycle 44 (cd938ec Counselor/Boat) Current (Cycle 46 9c4aaf7 Mandy Money) Improvement vs Baseline
VRAM Usage 11,236 MB 8,123 MB 8,500 MB (dense strip) -3,113 MB (-27.7%)
Peak Private RAM 29,159 MB 24,059 MB 25,700 MB -5,100 MB (-17.5%)
GPU Stall / Wait (Standing) 18.3 ms 3.6 ms 2.6 ms -15.7 ms (-85.8%)
GPU Stall / Wait (Chaos) 21.0 ms 7.6 ms 4.9 ms -16.1 ms (-76.7%)
Scene Complexity (Draws/frame) ~3,133 ~3,477 7,773 – 9,061 +189% geometry/materials handled
Real Dropped Draws / Dispatches 140 – 168 / frame 0.0 / frame 1.0 / frame -99.4% to -100%
Refused Shaders (Wave64) 4 0 5 (new outdoor area) Wave32 parity achieved
D3D12 Redundant Calls Elided 0 / frame 19,684 / frame ~19,000 / frame ~19k API calls avoided per frame
Full Texture Reuploads (reuploadFull) 1,062× 28× 33× -97.4% reupload thrashing
Severe Hitches (>100 ms) in Chaos 3 0 1 Near-zero stutter
Boot to World Time 49.6 s 47.0 s 48.2 s -2.6 s

Merged PRs & Major Upstream Imports

Memory, VRAM & Cache

  • PR #1588 (101Leafy): VICTORY_SHARED_ZEROS — Zeros for initial texture allocations and new mip levels come from one shared card buffer instead of per-copy upload buffers.
  • PR #1598 (mizzied): VICTORY_REMAP_SAME — Detects and skips redundant virtual page remappings in XMem when mappings already match.
  • PR #1606 (VIREX): Preserves independent host-RAM spare budgets across allocation hot paths.
  • PR #1607 (VIREX): Coalesces identical concurrent cache misses with self-cleaning per-key gates.
  • PR #1888 (Nosheboo): VICTORY_ROOM_REAL — Real DXGI VRAM budget margin check in room().
  • PR #1878 (xteral67): Preserves packed-structure physical pages when replacement arrives at identical address.
  • PR #1909 (Nosheboo): VICTORY_PLANE_SAME / VICTORY_PLANE_PIN — Skips unchanged linear plane uploads and adds lockless-first plane reads.
  • PR #1850 (101Leafy): VICTORY_RESIDENT_LATER — Background asynchronous memory residency via EnqueueMakeResident.

CPU Host, Submission & Descriptor Performance

  • PR #1157 / #1561 (mikael-jarvinen): 64-stripe merge_stripe(page) lock granularity, CopyState RwLock, atomic lock-free Done thread completion, narrowed CARD_WORK lock scope.
  • Commit 2fbac6ef (Mikael Järvinen): Inline constant_slots_batch avoiding 8-way worker thread wakeup and vector scatter overhead (-3.5 ms CPU prep).
  • Commit dc216b62 (Mikael Järvinen): Immediate CardPlan submission restoring low latency for GPU kick-off (-1.5 ms CPU prep).
  • Commit 92e0d4b (Lead): Shared immutable Step::RefreshSet (CopySet) in Memory::bring_up — reduced ~46,000 per-frame Step::Refresh allocations to ~191 refs with O(1) set-skips.
  • PR #1616 (Damokles2): Eliminates temporary heap allocations during single-range descriptor table copies.
  • PR #1853 (101Leafy): VICTORY_GUARD_PARTS — Opens descriptor heap blocks by individual 4 KiB parts on write faults instead of whole 64 KiB blocks.
  • PR #1854 (101Leafy): VICTORY_SAME_TABLES — Reuses identical record runs across descriptor tables within the same frame.
  • Commit 9c4aaf7 (Lead): D3D12 state deduplication (IASetPrimitiveTopology, IASetVertexBuffers/IASetIndexBuffer, SetRootArg), saving ~19,000 redundant host driver calls/frame.
  • SkillIssueXO (9e08f2b / 372f4c27): Batched refused write-watch ranges within Windows allocation boundaries and cached allocation hints (-1.5 ms write-watch prep).
  • PR #1913 (maetrik92): Hybrid CPU architecture optimization: pins the submit thread to a dedicated P-core and removes MnK smoothing/deadzone overhead.
  • PR #1857 (Bazovsky): Lowers victory-list thread priority on AMD V-Cache CCD and shifts workers off core 0.
  • PR #1877 (unueberlegt): Held descriptor slots skip redundant page table walks.

Shaders, Ray Tracing & Visual Fixes

  • PR #1571 (Amar-D3V): Instance culling wave-wide lowering (CS_Tree_BatchCull) — fixes missing distant trees and popping bushes.
  • PR #1264: Descriptor neighbour preservation — fixes black/missing buildings and skybox clipping.
  • PR #1542 (invismann): Fixes ds_bpermute_b32 lane selection logic on Wave32 host GPUs.
  • PR #1569 (101Leafy): Indexes computed_with and read_as_number once per lowering — accelerates shader translation from 25 s down to 2.6 s (~10× speedup).
  • PR #1904 (73N1X): Preserves active pixel masks when linking oversized mesh shaders.
  • PR #1866 (atk3001): Mesh shader groups lowered into whole console waves with 16-bit register emulation.
  • PR #1887 (steven-seagull27): Tracks physical-page ownership for alias_rt D3D12 aliasing barriers.
  • PR #1890 (Gauss999): Coalesces and merges adjacent D3D12 resource barriers.
  • SkillIssueXO (b4a7d9a): Pre-initializes Wave32 reduction LDS identities before per-lane exits in tiled water shaders.

Queues, Synchronization & System

  • PR #1597 (mizzied): Shared queue fence lines and persistent held FenceRef handles.
  • PR #1596 (mizzied): DirectStorage request buffer reuse within fixed per-worker memory budgets.
  • PR #1591 (101Leafy): Non-blocking relay timeouts preventing infinite thread hangs on empty landing lines.
  • PR #1617 (Jesper-Andersson): Native Alt+Enter borderless fullscreen toggle via DXGI interception.
  • PR #1870 (Kikerlai): Continuous display awake request prevention.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5547594185 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1967). Originally posted by [edwardteach247](https://github.com/edwardteach247) on 2026-11-29T04:37:06Z. --- ### Baseline from main 11/28/2026 (Cycle 1) vs. Current Results R7 7700x 5ghz + 3080 TI 12gb Vram + 32gb DDR5 Tested on NVIDIA RTX 3080 Ti (12 GB VRAM), 8-Core / 16-Thread CPU, 32 GB RAM, Windows 11 at 1440p (`2458×1353`). | Metric | Baseline (Cycle 1 `f6e1754`) | Cycle 44 (`cd938ec` Counselor/Boat) | Current (Cycle 46 `9c4aaf7` Mandy Money) | Improvement vs Baseline | |---|---:|---:|---:|---| | **VRAM Usage** | 11,236 MB | **8,123 MB** | 8,500 MB (dense strip) | **-3,113 MB (-27.7%)** | | **Peak Private RAM** | 29,159 MB | **24,059 MB** | 25,700 MB | **-5,100 MB (-17.5%)** | | **GPU Stall / Wait (Standing)** | 18.3 ms | **3.6 ms** | **2.6 ms** | **-15.7 ms (-85.8%)** | | **GPU Stall / Wait (Chaos)** | 21.0 ms | **7.6 ms** | **4.9 ms** | **-16.1 ms (-76.7%)** | | **Scene Complexity (Draws/frame)** | ~3,133 | ~3,477 | **7,773 – 9,061** | **+189% geometry/materials handled** | | **Real Dropped Draws / Dispatches** | 140 – 168 / frame | **0.0 / frame** | **1.0 / frame** | **-99.4% to -100%** | | **Refused Shaders (Wave64)** | 4 | **0** | 5 (new outdoor area) | **Wave32 parity achieved** | | **D3D12 Redundant Calls Elided** | 0 / frame | **19,684 / frame** | **~19,000 / frame** | **~19k API calls avoided per frame** | | **Full Texture Reuploads (`reuploadFull`)** | 1,062× | **28×** | 33× | **-97.4% reupload thrashing** | | **Severe Hitches (>100 ms) in Chaos** | 3 | **0** | **1** | **Near-zero stutter** | | **Boot to World Time** | 49.6 s | **47.0 s** | **48.2 s** | **-2.6 s** | --- ### Merged PRs & Major Upstream Imports #### Memory, VRAM & Cache - **PR #1588 (101Leafy):** `VICTORY_SHARED_ZEROS` — Zeros for initial texture allocations and new mip levels come from one shared card buffer instead of per-copy upload buffers. - **PR #1598 (mizzied):** `VICTORY_REMAP_SAME` — Detects and skips redundant virtual page remappings in XMem when mappings already match. - **PR #1606 (VIREX):** Preserves independent host-RAM spare budgets across allocation hot paths. - **PR #1607 (VIREX):** Coalesces identical concurrent cache misses with self-cleaning per-key gates. - **PR #1888 (Nosheboo):** `VICTORY_ROOM_REAL` — Real DXGI VRAM budget margin check in `room()`. - **PR #1878 (xteral67):** Preserves packed-structure physical pages when replacement arrives at identical address. - **PR #1909 (Nosheboo):** `VICTORY_PLANE_SAME` / `VICTORY_PLANE_PIN` — Skips unchanged linear plane uploads and adds lockless-first plane reads. - **PR #1850 (101Leafy):** `VICTORY_RESIDENT_LATER` — Background asynchronous memory residency via `EnqueueMakeResident`. #### CPU Host, Submission & Descriptor Performance - **PR #1157 / #1561 (mikael-jarvinen):** 64-stripe `merge_stripe(page)` lock granularity, `CopyState` `RwLock`, atomic lock-free `Done` thread completion, narrowed `CARD_WORK` lock scope. - **Commit `2fbac6ef` (Mikael Järvinen):** Inline `constant_slots_batch` avoiding 8-way worker thread wakeup and vector scatter overhead (-3.5 ms CPU prep). - **Commit `dc216b62` (Mikael Järvinen):** Immediate `CardPlan` submission restoring low latency for GPU kick-off (-1.5 ms CPU prep). - **Commit `92e0d4b` (Lead):** Shared immutable `Step::RefreshSet` (`CopySet`) in `Memory::bring_up` — reduced ~46,000 per-frame `Step::Refresh` allocations to ~191 refs with $O(1)$ set-skips. - **PR #1616 (Damokles2):** Eliminates temporary heap allocations during single-range descriptor table copies. - **PR #1853 (101Leafy):** `VICTORY_GUARD_PARTS` — Opens descriptor heap blocks by individual 4 KiB parts on write faults instead of whole 64 KiB blocks. - **PR #1854 (101Leafy):** `VICTORY_SAME_TABLES` — Reuses identical record runs across descriptor tables within the same frame. - **Commit `9c4aaf7` (Lead):** D3D12 state deduplication (`IASetPrimitiveTopology`, `IASetVertexBuffers`/`IASetIndexBuffer`, `SetRootArg`), saving ~19,000 redundant host driver calls/frame. - **SkillIssueXO (`9e08f2b` / `372f4c27`):** Batched refused write-watch ranges within Windows allocation boundaries and cached allocation hints (-1.5 ms write-watch prep). - **PR #1913 (maetrik92):** Hybrid CPU architecture optimization: pins the submit thread to a dedicated P-core and removes MnK smoothing/deadzone overhead. - **PR #1857 (Bazovsky):** Lowers `victory-list` thread priority on AMD V-Cache CCD and shifts workers off core 0. - **PR #1877 (unueberlegt):** Held descriptor slots skip redundant page table walks. #### Shaders, Ray Tracing & Visual Fixes - **PR #1571 (Amar-D3V):** Instance culling wave-wide lowering (`CS_Tree_BatchCull`) — fixes missing distant trees and popping bushes. - **PR #1264:** Descriptor neighbour preservation — fixes black/missing buildings and skybox clipping. - **PR #1542 (invismann):** Fixes `ds_bpermute_b32` lane selection logic on Wave32 host GPUs. - **PR #1569 (101Leafy):** Indexes `computed_with` and `read_as_number` once per lowering — accelerates shader translation from 25 s down to 2.6 s (~10× speedup). - **PR #1904 (73N1X):** Preserves active pixel masks when linking oversized mesh shaders. - **PR #1866 (atk3001):** Mesh shader groups lowered into whole console waves with 16-bit register emulation. - **PR #1887 (steven-seagull27):** Tracks physical-page ownership for `alias_rt` D3D12 aliasing barriers. - **PR #1890 (Gauss999):** Coalesces and merges adjacent D3D12 resource barriers. - **SkillIssueXO (`b4a7d9a`):** Pre-initializes Wave32 reduction LDS identities before per-lane exits in tiled water shaders. #### Queues, Synchronization & System - **PR #1597 (mizzied):** Shared queue fence lines and persistent held `FenceRef` handles. - **PR #1596 (mizzied):** DirectStorage request buffer reuse within fixed per-worker memory budgets. - **PR #1591 (101Leafy):** Non-blocking relay timeouts preventing infinite thread hangs on empty landing lines. - **PR #1617 (Jesper-Andersson):** Native Alt+Enter borderless fullscreen toggle via DXGI interception. - **PR #1870 (Kikerlai):** Continuous display awake request prevention.
anxiousCamel commented 2026-11-29 05:27:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by anxiousCamel on 2026-11-29T05:27:29Z.


Feedback de Teste em RTX 5060 Ti (16 GB) - Build Local com PRs Integrados

Testei localmente uma build integrando os PRs #1888, #1890 e #1891 em uma RTX 5060 Ti 16GB + Windows 11 (HAGS ativado via registro). O jogo inicia e atinge 120 FPS estáveis na tela de diagnóstico, mas encontrei dois problemas críticos ao tentar ativar o DLSS Frame Generation:

1. Reflexos Severamente Bugados com VICTORY_AMBIENT_SPECULAR

Ao usar VICTORY_AMBIENT_SPECULAR=1 (juntamente com VICTORY_AMBIENT=0.8), os reflexos em superfícies e olhos de NPCs ficam completamente estourados, causando artefatos visuais severos. O fallback de ambient specular não considera o roughness dos materiais, aplicando reflexão full-strength indiscriminadamente. Recomendação: Documentar explicitamente que essas variáveis são experimentais e causam regressão visual até que o RT/DXR nativo seja implementado.

2. Queda Brusca de FPS ao Ativar DLSS + Frame Generation

  • Sem DLSS/FG: 120 FPS estáveis, GPU ~60% ocupada.
  • Com DLSS Quality + FG ativado: FPS cai para ~25, GPU 100%, frame time sobe para 40+ ms.
  • Causa identificada no overlay: NOTE: 51 DRAWS SKIPPED. THEIR SHADERS CANNOT BE CONVERTED YET.

Quando o DLSS/FG é ativado, o pipeline tenta usar shaders que ainda falham na tradução Wave64→Wave32. O fallback força a GPU por um caminho extremamente lento, tornando o Frame Generation inutilizável nesta build. O PR #1938 (Reflex frame pacing) parece relacionado — testei com VICTORY_CARD_AWAKE=0 conforme sugerido lá, mas o gargalo persiste porque os shaders rejeitados são o limitante real, não o awake job.

Ambiente de Teste

  • GPU: NVIDIA RTX 5060 Ti 16 GB
  • OS: Windows 11 Home 26300 (HAGS ativo)
  • Streamline: 2.14.16
  • Resolução: 1440p

Sugestão

Os PRs de desempenho (#1888, #1890, #1891) funcionam corretamente isolados. O bloqueio atual é puramente na tradução de shaders para o caminho DLSS-G. Priorizar a recuperação dos shaders wave64 rejeitados seria o próximo passo mais impactante para tornar o Frame Generation utilizável em placas NVIDIA da série 40/50.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7251265432 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1967#issuecomment-7251265432). Originally posted by [anxiousCamel](https://github.com/anxiousCamel) on 2026-11-29T05:27:29Z. --- ## Feedback de Teste em RTX 5060 Ti (16 GB) - Build Local com PRs Integrados Testei localmente uma build integrando os PRs #1888, #1890 e #1891 em uma RTX 5060 Ti 16GB + Windows 11 (HAGS ativado via registro). O jogo inicia e atinge 120 FPS estáveis na tela de diagnóstico, mas encontrei dois problemas críticos ao tentar ativar o DLSS Frame Generation: ### 1. Reflexos Severamente Bugados com VICTORY_AMBIENT_SPECULAR Ao usar `VICTORY_AMBIENT_SPECULAR=1` (juntamente com `VICTORY_AMBIENT=0.8`), os reflexos em superfícies e olhos de NPCs ficam completamente estourados, causando artefatos visuais severos. O fallback de ambient specular não considera o roughness dos materiais, aplicando reflexão full-strength indiscriminadamente. **Recomendação:** Documentar explicitamente que essas variáveis são experimentais e causam regressão visual até que o RT/DXR nativo seja implementado. ### 2. Queda Brusca de FPS ao Ativar DLSS + Frame Generation - **Sem DLSS/FG:** 120 FPS estáveis, GPU ~60% ocupada. - **Com DLSS Quality + FG ativado:** FPS cai para ~25, GPU 100%, frame time sobe para 40+ ms. - **Causa identificada no overlay:** `NOTE: 51 DRAWS SKIPPED. THEIR SHADERS CANNOT BE CONVERTED YET`. Quando o DLSS/FG é ativado, o pipeline tenta usar shaders que ainda falham na tradução Wave64→Wave32. O fallback força a GPU por um caminho extremamente lento, tornando o Frame Generation inutilizável nesta build. O PR #1938 (Reflex frame pacing) parece relacionado — testei com `VICTORY_CARD_AWAKE=0` conforme sugerido lá, mas o gargalo persiste porque os shaders rejeitados são o limitante real, não o awake job. ### Ambiente de Teste - GPU: NVIDIA RTX 5060 Ti 16 GB - OS: Windows 11 Home 26300 (HAGS ativo) - Streamline: 2.14.16 - Resolução: 1440p ### Sugestão Os PRs de desempenho (#1888, #1890, #1891) funcionam corretamente isolados. O bloqueio atual é puramente na tradução de shaders para o caminho DLSS-G. Priorizar a recuperação dos shaders wave64 rejeitados seria o próximo passo mais impactante para tornar o Frame Generation utilizável em placas NVIDIA da série 40/50.
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/1967:upstream-pr/1967'
git switch 'upstream-pr/1967'

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/1967'
git switch 'upstream-pr/1967'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1967'
git switch 'upstream-pr/1967'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1967'
git switch 'main'
git merge --squash 'upstream-pr/1967'
git switch 'main'
git merge --ff-only 'upstream-pr/1967'
git switch 'main'
git merge 'upstream-pr/1967'
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
trustno1-coder/VIctory-NVIDIA!1967
No description provided.