gpu: reuse mixed texture-heap holes for card windows #180

Closed
opened 2026-11-27 19:24:22 +00:00 by github-bot · 5 comments
Owner

@⁠krofty on GitHub · 2026-11-27 19:21 UTC · original

On the RTX 3070 integration baseline, roughly 3.4 GiB of raw-address windows remain in CPU-visible system memory while existing texture heap backing reports substantial unoccupied capacity. The default 8 GB window-card budget is zero; allocating an extra 512 MiB of committed window buffers regressed performance under VRAM pressure. Queued GPU brackets remain about 37–39 ms/frame at roughly 23–24 native host-present FPS.

Implement an opt-in, capped path that places read-heavy raw-address window card sides into suitable existing heap holes on ResourceHeapTier2 hardware. Do not grow heaps to satisfy a window allocation and do not use a committed-VRAM fallback for this path.

Acceptance:

  • Query heap-tier support; mixed heaps permit buffers and non-RT/DS textures only, with the old texture-only handling retained when disabled/unsupported.
  • Use native allocation size/alignment, exclusive extents and resource-owned lease lifetime. Include buffer leases in pool admission accounting.
  • Before any reused extent can serve another resource, prove completion with the actual native producer fence. Device loss and pending work fail closed; elapsed time alone is insufficient.
  • Record an aliasing barrier before first use and fully initialize every shader-readable byte from the existing CPU staging representation. Preserve subsequent dirty-range forwarding, comparisons and guest CPU visibility.
  • Keep borrowed backing capped; no claim that fragmented/resting pool counters equal immediately usable memory. Report actual placed bytes and misses.
  • Focused allocator/lifetime/alias tests, diagnostics build through build.sh, then matched game validation at the same scene/settings and native GPU bracket measurements. No missing rendering counted as a speedup.

Claim: Codex / krofty owns this isolated implementation. Checked current fork issues/PRs and Snaacky's open work; this does not modify the raw-pixel decoding/LDS work or another developer's branches. Related performance integration is Snaacky/ztrx#249. PR stays open and unmerged; no FPS gain is assumed.

**@⁠krofty** on GitHub · 2026-11-27 19:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/180) On the RTX 3070 integration baseline, roughly 3.4 GiB of raw-address windows remain in CPU-visible system memory while existing texture heap backing reports substantial unoccupied capacity. The default 8 GB window-card budget is zero; allocating an extra 512 MiB of committed window buffers regressed performance under VRAM pressure. Queued GPU brackets remain about 37–39 ms/frame at roughly 23–24 native host-present FPS. Implement an opt-in, capped path that places read-heavy raw-address window card sides into suitable existing heap holes on ResourceHeapTier2 hardware. Do not grow heaps to satisfy a window allocation and do not use a committed-VRAM fallback for this path. Acceptance: - Query heap-tier support; mixed heaps permit buffers and non-RT/DS textures only, with the old texture-only handling retained when disabled/unsupported. - Use native allocation size/alignment, exclusive extents and resource-owned lease lifetime. Include buffer leases in pool admission accounting. - Before any reused extent can serve another resource, prove completion with the actual native producer fence. Device loss and pending work fail closed; elapsed time alone is insufficient. - Record an aliasing barrier before first use and fully initialize every shader-readable byte from the existing CPU staging representation. Preserve subsequent dirty-range forwarding, comparisons and guest CPU visibility. - Keep borrowed backing capped; no claim that fragmented/resting pool counters equal immediately usable memory. Report actual placed bytes and misses. - Focused allocator/lifetime/alias tests, diagnostics build through build.sh, then matched game validation at the same scene/settings and native GPU bracket measurements. No missing rendering counted as a speedup. Claim: Codex / krofty owns this isolated implementation. Checked current fork issues/PRs and Snaacky's open work; this does not modify the raw-pixel decoding/LDS work or another developer's branches. Related performance integration is Snaacky/ztrx#249. PR stays open and unmerged; no FPS gain is assumed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:24:22 +00:00
Author
Owner

@⁠krofty on GitHub · 2026-11-27 19:22 UTC · original

Codex / krofty claims this implementation on its own perf/mixed-window-heaps branch. GitHub issue creation succeeded but collaborator assignment is unavailable, so this explicit claim is the ownership record. Scope: opt-in Tier2 existing-hole-only window placement, native-fence-qualified pool retirement, alias activation and complete initial footprint, capped at 128 MiB initially. No overlap with Snaacky raw-pixel/LDS work; PR remains open and unmerged.

**@⁠krofty** on GitHub · 2026-11-27 19:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/180#issuecomment-7226465660) Codex / krofty claims this implementation on its own perf/mixed-window-heaps branch. GitHub issue creation succeeded but collaborator assignment is unavailable, so this explicit claim is the ownership record. Scope: opt-in Tier2 existing-hole-only window placement, native-fence-qualified pool retirement, alias activation and complete initial footprint, capped at 128 MiB initially. No overlap with Snaacky raw-pixel/LDS work; PR remains open and unmerged.
Author
Owner

@⁠krofty on GitHub · 2026-11-27 20:02 UTC · original

Implementation is open as draft PR #209. WARP and RTX native extent/COM/fence/full-content/frozen-upload regressions pass; occupied cap/accounting now stays charged through actual retirement, with 13 pool unit tests. Diagnostics build 295 passed. Its preliminary baseline changed camera view and had new pipelines still being made, so the candidate was not launched and no FPS comparison is claimed. Build 296 and fresh matched runs use the same shorter, pipeline-settled benchmark window. Continuing validation on the owned integration; PR open and unmerged.

**@⁠krofty** on GitHub · 2026-11-27 20:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/180#issuecomment-7227119889) Implementation is open as draft PR #209. WARP and RTX native extent/COM/fence/full-content/frozen-upload regressions pass; occupied cap/accounting now stays charged through actual retirement, with 13 pool unit tests. Diagnostics build 295 passed. Its preliminary baseline changed camera view and had new pipelines still being made, so the candidate was not launched and no FPS comparison is claimed. Build 296 and fresh matched runs use the same shorter, pipeline-settled benchmark window. Continuing validation on the owned integration; PR open and unmerged.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-27 21:08 UTC · original

Thanks. This is implemented in PR #209, so the change is tracked there now. Closing the issue to keep one place for it.

**@⁠trustno1-coder** on GitHub · 2026-11-27 21:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/180#issuecomment-7228174915) Thanks. This is implemented in PR #209, so the change is tracked there now. Closing the issue to keep one place for it.
Author
Owner

@⁠krofty on GitHub · 2026-11-27 21:10 UTC · original

Implementation is complete and submitted in draft #209; releasing the implementation claim. Fixed-source build 297 and native correctness checks passed. Performance validation continues on the owned integration; failed menu/drifting-scene runs are excluded. No FPS gain is claimed yet and the PR stays unmerged.

**@⁠krofty** on GitHub · 2026-11-27 21:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/180#issuecomment-7228202059) Implementation is complete and submitted in draft #209; releasing the implementation claim. Fixed-source build 297 and native correctness checks passed. Performance validation continues on the owned integration; failed menu/drifting-scene runs are excluded. No FPS gain is claimed yet and the PR stays unmerged.
Author
Owner

@⁠krofty on GitHub · 2026-11-27 21:25 UTC · original

Fixed-world same-build runs316/317 completed normally with pool cap0/512MiB. Placement activated: 145 cumulative placements, about300MiB held, 979 existing-hole misses and no cap/native failures. It did not improve frame rate. Last three host-meter intervals were44.7/44.1/50.0ms off and47.0/126.8/49.4ms on. Delayed GPU bracket averages remained about40–46ms. These counters do not constitute a completed-frame distribution.

Both world pictures retained the expected character, suit, walls and window; the real pad/scene and window size still vary. The candidate has no demonstrated performance win. It remains default off and draft #209 stays open/unmerged. Moving implementation effort to GPU maintenance launch batching (#335/#358), rather than repeating placement caps. Implementation claim was already released; no new ownership claim here.

**@⁠krofty** on GitHub · 2026-11-27 21:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/180#issuecomment-7228432009) Fixed-world same-build runs316/317 completed normally with pool cap0/512MiB. Placement activated: 145 cumulative placements, about300MiB held, 979 existing-hole misses and no cap/native failures. It did not improve frame rate. Last three host-meter intervals were44.7/44.1/50.0ms off and47.0/126.8/49.4ms on. Delayed GPU bracket averages remained about40–46ms. These counters do not constitute a completed-frame distribution. Both world pictures retained the expected character, suit, walls and window; the real pad/scene and window size still vary. The candidate has no demonstrated performance win. It remains default off and draft #209 stays open/unmerged. Moving implementation effort to GPU maintenance launch batching (#335/#358), rather than repeating placement caps. Implementation claim was already released; no new ownership claim here.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#180
No description provided.