Renderer ports 1+5 on an NVIDIA 8 GB card: card time doubles (constants read across PCIe) #389

Open
opened 2026-11-27 00:56:26 +00:00 by github-bot · 1 comment
Owner

@⁠MKmajster on GitHub · 2026-11-26 22:17 UTC · original

A data point for NVIDIA, in case it helps with the 8 GB issue (#221). I ported renderer ports 1 and 5 (VICTORY_PORT_CONSTANTS, VICTORY_PORT_CBV) onto an fxceless-based tree and ran them on an RTX 3070 8 GB (Ryzen 5 5600, 16 GB RAM, Series S).

  • Port 1 alone works: the 32-bit graphics heap goes in place (185 MB), nothing is sent up or fetched back for it, no errors.
  • But on this card the list time of the card rose from about 52–58 ms to 119–134 ms a frame with ports 1+5, measured after the pipeline library was warm (0 ms waiting for pipelines). With port 1 alone it was about 70 → 92 ms. The constants are then read from PC memory across PCIe as raw views; on the 7900 XTX with Smart Access Memory this may cost far less.
  • Port 2 (descriptor-store marks) on the other hand worked very well here: sync_heaps 17 ms → under 1 ms a frame.

So on NVIDIA we keep 1+5 off and 2 on. If you have an idea of a cheaper form for NVIDIA (for example ports 1+5 only for buffers the card reads once a frame), I can measure it on this machine.

AI-assisted (Claude Code, with Gemini). No game data attached.

**@⁠MKmajster** on GitHub · 2026-11-26 22:17 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/389) A data point for NVIDIA, in case it helps with the 8 GB issue (#221). I ported renderer ports 1 and 5 (`VICTORY_PORT_CONSTANTS`, `VICTORY_PORT_CBV`) onto an fxceless-based tree and ran them on an RTX 3070 8 GB (Ryzen 5 5600, 16 GB RAM, Series S). - Port 1 alone works: the 32-bit graphics heap goes in place (185 MB), nothing is sent up or fetched back for it, no errors. - But on this card the list time of the card rose from about 52–58 ms to 119–134 ms a frame with ports 1+5, measured after the pipeline library was warm (0 ms waiting for pipelines). With port 1 alone it was about 70 → 92 ms. The constants are then read from PC memory across PCIe as raw views; on the 7900 XTX with Smart Access Memory this may cost far less. - Port 2 (descriptor-store marks) on the other hand worked very well here: `sync_heaps` 17 ms → under 1 ms a frame. So on NVIDIA we keep 1+5 off and 2 on. If you have an idea of a cheaper form for NVIDIA (for example ports 1+5 only for buffers the card reads once a frame), I can measure it on this machine. AI-assisted (Claude Code, with Gemini). No game data attached.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:56:26 +00:00
Author
Owner

@⁠akimfomin on GitHub · 2026-11-26 23:27 UTC · original

The RTX 3070 reports agree on keeping in-place constants off for now. Your run used an 8192 MiB BAR and CuteBooty's run used 256 MiB, a different tree and a denser scene, so this is agreement in direction across two setups.

I tested the alternative that reuses snapshots without making shaders read raw CBVs across PCIe. Applying only ByFxbian's #1316 delta at c5b0898 over its explicit base 58de9bf onto your 85333a6 branch conflicts in copystat.rs, draw.rs, host.rs and list.rs. The toggle is absent there. Existing isolated test results show a benefit for repeated ranges and little preparation benefit when every source is unique. Before porting four files, one useful control is to count distinct CBV source ranges versus total bindings on the current renderer-port-2-only route. The local result is a Git check. PortBridge · AI-assisted comparison.

**@⁠akimfomin** on GitHub · 2026-11-26 23:27 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/389#issuecomment-7205556631) The RTX 3070 reports agree on keeping in-place constants off for now. [Your run](https://github.com/fxceless/victory-fork/issues/1083#issuecomment-7204536832) used an 8192 MiB BAR and [CuteBooty's run](https://github.com/fxceless/victory-fork/issues/1083#issuecomment-7204865747) used 256 MiB, a different tree and a denser scene, so this is agreement in direction across two setups. I tested the alternative that reuses snapshots without making shaders read raw CBVs across PCIe. Applying only [ByFxbian's #1316 delta](https://github.com/fxceless/victory-fork/pull/1316) at `c5b0898` over its explicit base `58de9bf` onto [your `85333a6` branch](https://github.com/MKmajster/victory-fork-8gb/commit/85333a621b145c840b1b25862ef7cd839984c526) conflicts in `copystat.rs`, `draw.rs`, `host.rs` and `list.rs`. The toggle is absent there. [Existing isolated test results](https://github.com/akimfomin/PortBridge/blob/b8c4439a550c1cd92b24e140f6e99eb7ae146b4b/audit/evidence/victory-cbv-ab.md) show a benefit for repeated ranges and little preparation benefit when every source is unique. Before porting four files, one useful control is to count distinct CBV source ranges versus total bindings on the current renderer-port-2-only route. The local result is a Git check. [PortBridge](https://github.com/akimfomin/PortBridge) · AI-assisted comparison.
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/avatarmanz--VIctory-7900XTX#389
No description provided.