[GH #95] 8 GB card: indexed textures 6.2 GB + 208 MB/frame copy-back hold the world at 3 fps #95

Open
opened 2026-11-25 11:10:47 +00:00 by bailu12300 · 0 comments
bailu12300 commented 2026-11-25 11:10:47 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by bailu12300 on 2026-11-25T10:50:30Z.


Context: main 90b529f + #49 + #36 + the builder fix above, Win10 19045, RTX 5060 8 GB, i5-14490F, 32 GB RAM. World now renders (courtyard, sun, volumetrics) but sits at 3-4 fps, and the ceiling is on the host side, not the card.

Steady state in the courtyard (6939 -> 5394 draws/frame, VICTORY_RELAY=2 LATE_WAIT=3 WIDE_BACK=1 BVH_BUILDER=1):

  • 3.3 fps, 306.3 ms/frame: preparing 152.1 ms (copies 64.2 ms / 150.5 MB), 138.5 ms on the GPU, 241.4 ms copying back 76.1 MB, heap passes 54.8 ms
  • textures picked by index: 19,784 uploaded so far (6,217 MB), 15,024 slots queued, only 15 of them "waiting for their memory", 6,600 passed over unmapped, 448,340 writes of table slots since start, 105,711 slots taken out as read through a table
  • host copies in the card's memory: 10 copies 492 MB; per frame 58.4 MB sent up in 188 ranges, 8,318 pieces compared, 709 fetched (46.3 MB), 5.5 waits for the card (118.0 ms)
  • On a cold start we also hit textures picked by index: the card has no room for more; they wait once - i.e. resource::room() said no at 8 GB (used < budget/10*9)

So: the card is at 138 ms while 241 ms of copy-back plus 152 ms of preparing wrap around it. The 6.2 GB of indexed-texture host copies plus 150 MB/frame of buffer copies is what a 8 GB card with 32 GB RAM cannot absorb at this rate.

Two things I would like your view on before I start cutting:

  1. room() returns false and heap_textures then stops making host copies until something is let go. Would you rather have that path call let_go_idle() with zero idle (drop every copy nothing names this instant) than simply stop? Right now the "no room" state can last for the rest of the run.
  2. Is there an intended way to cap the per-texture cost of the indexed path - e.g. upload only the top mip(s) a draw can actually sample at 1440p - or is full-resolution-per-slot deliberate because the title re-samples the same slot at other scales?

I have VICTORY_TEXTURE_NO_WAIT=1 queued as the next measurement (the 5.5 card waits are 118 ms/frame here). I will report the numbers either way.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6602778025 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/95). Originally posted by [bailu12300](https://github.com/bailu12300) on 2026-11-25T10:50:30Z. --- Context: main 90b529f + #49 + #36 + the builder fix above, Win10 19045, RTX 5060 **8 GB**, i5-14490F, 32 GB RAM. World now renders (courtyard, sun, volumetrics) but sits at 3-4 fps, and the ceiling is on the host side, not the card. Steady state in the courtyard (6939 -> 5394 draws/frame, VICTORY_RELAY=2 LATE_WAIT=3 WIDE_BACK=1 BVH_BUILDER=1): - 3.3 fps, 306.3 ms/frame: preparing 152.1 ms (copies 64.2 ms / 150.5 MB), **138.5 ms on the GPU**, **241.4 ms copying back 76.1 MB**, heap passes 54.8 ms - `textures picked by index`: **19,784 uploaded so far (6,217 MB)**, **15,024 slots queued**, only 15 of them "waiting for their memory", 6,600 passed over unmapped, **448,340 writes of table slots** since start, 105,711 slots taken out as read through a table - `host copies in the card's memory`: 10 copies 492 MB; per frame **58.4 MB sent up in 188 ranges**, 8,318 pieces compared, 709 fetched (46.3 MB), 5.5 waits for the card (118.0 ms) - On a cold start we also hit `textures picked by index: the card has no room for more; they wait` once - i.e. `resource::room()` said no at 8 GB (`used < budget/10*9`) So: the card is at 138 ms while 241 ms of copy-back plus 152 ms of preparing wrap around it. The 6.2 GB of indexed-texture host copies plus 150 MB/frame of buffer copies is what a 8 GB card with 32 GB RAM cannot absorb at this rate. Two things I would like your view on before I start cutting: 1. `room()` returns false and `heap_textures` then stops making host copies until something is let go. Would you rather have that path call `let_go_idle()` with zero idle (drop every copy nothing names this instant) than simply stop? Right now the "no room" state can last for the rest of the run. 2. Is there an intended way to cap the per-texture cost of the indexed path - e.g. upload only the top mip(s) a draw can actually sample at 1440p - or is full-resolution-per-slot deliberate because the title re-samples the same slot at other scales? I have `VICTORY_TEXTURE_NO_WAIT=1` queued as the next measurement (the 5.5 card waits are 118 ms/frame here). I will report the numbers either way.
Sign in to join this conversation.
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
Zettrox/ztrx#95
No description provided.