Texture eviction gets slower the longer a session runs (frame prep 48 → 70 ms over 30 min, RTX 3080 10 GB) #12

Closed
opened 2026-11-30 02:23:06 +00:00 by github-bot · 3 comments
Owner

@⁠notdeeney on GitHub · 2026-11-27 17:31 UTC · original

Setup

  • i5-12600K (6P+4E), 32 GB DDR4-3200, RTX 3080 10 GB, Windows 11, title on NVMe SSD
  • VIctory-NVIDIA fork (trustno1-coder) at d12eb1b, which is based on foxhound; built from source, release
  • play-foxhound.ps1 -SeriesS -Dlss performance -FrameGen -FrameGenX 2
    (frame generation on this card goes through the third-party DLSSG SM86 proxy)
  • So VICTORY_TEXTURE_ROOM_PERCENT=80, budget reported by Windows ~8.6–9.3 GB
  • Log level: error,victory_gpu::host=info

What happens
Over a 30-minute session in the open world the game gets steadily slower at the same draw counts,
and system RAM climbs from ~27 GB to ~30 GB.

Time fps preparing (ms) draws/frame
+5 min 13.2 56.5 7069
+15 min 11.7 52.7 8854
+30 min 9.2 70.6 6786

From about +4 min the texture queue line says no room, new textures wait almost every time
(e.g. 7647 MB in use ... against a line of 6914 MB (80.0 % of a budget of 8643 MB)).

The "looks for textures to let go" in the "textures from the first level viewed" line keep getting
more expensive, even after the number of host copies stops growing:

Time host copies of levels viewed alone looks so far ms each (avg) longest
+1 min 19,340 62 3.47 15.8
+5 min 79,604 233 7.61 20.0
+15 min 240,079 757 11.42 31.5
+20 min 242,007 974 12.53 40.8
+30 min 243,533 1,488 14.48 40.8

Between +15 and +30 min the host copies grow by only ~3,400 (+1.4 %), but the average cost of a look
keeps rising (11.4 → 14.5 ms, so recent looks are well above 14 ms) at about one look per second.
It looks like something the look walks keeps growing (entries let go but not removed?).

Also tried

  • VICTORY_LEVELS_ON_DEMAND=1: VRAM in use went above the line (8.4–8.9 GB vs a 7.0 GB line), many
    textures black, as documented for levels without memory. Not a workaround here.
  • Without VICTORY_PORT_CONSTANTS (was on before): RAM still climbs, maybe a bit slower.

Full logs available on request.

**@⁠notdeeney** on GitHub · 2026-11-27 17:31 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/12) **Setup** - i5-12600K (6P+4E), 32 GB DDR4-3200, RTX 3080 10 GB, Windows 11, title on NVMe SSD - VIctory-NVIDIA fork (trustno1-coder) at d12eb1b, which is based on foxhound; built from source, release - `play-foxhound.ps1 -SeriesS -Dlss performance -FrameGen -FrameGenX 2` (frame generation on this card goes through the third-party DLSSG SM86 proxy) - So `VICTORY_TEXTURE_ROOM_PERCENT=80`, budget reported by Windows ~8.6–9.3 GB - Log level: `error,victory_gpu::host=info` **What happens** Over a 30-minute session in the open world the game gets steadily slower at the same draw counts, and system RAM climbs from ~27 GB to ~30 GB. | Time | fps | preparing (ms) | draws/frame | |---|---|---|---| | +5 min | 13.2 | 56.5 | 7069 | | +15 min | 11.7 | 52.7 | 8854 | | +30 min | 9.2 | 70.6 | 6786 | From about +4 min the texture queue line says `no room, new textures wait` almost every time (e.g. `7647 MB in use ... against a line of 6914 MB (80.0 % of a budget of 8643 MB)`). The "looks for textures to let go" in the "textures from the first level viewed" line keep getting more expensive, even after the number of host copies stops growing: | Time | host copies of levels viewed alone | looks so far | ms each (avg) | longest | |---|---|---|---|---| | +1 min | 19,340 | 62 | 3.47 | 15.8 | | +5 min | 79,604 | 233 | 7.61 | 20.0 | | +15 min | 240,079 | 757 | 11.42 | 31.5 | | +20 min | 242,007 | 974 | 12.53 | 40.8 | | +30 min | 243,533 | 1,488 | 14.48 | 40.8 | Between +15 and +30 min the host copies grow by only ~3,400 (+1.4 %), but the average cost of a look keeps rising (11.4 → 14.5 ms, so recent looks are well above 14 ms) at about one look per second. It looks like something the look walks keeps growing (entries let go but not removed?). **Also tried** - `VICTORY_LEVELS_ON_DEMAND=1`: VRAM in use went above the line (8.4–8.9 GB vs a 7.0 GB line), many textures black, as documented for levels without memory. Not a workaround here. - Without `VICTORY_PORT_CONSTANTS` (was on before): RAM still climbs, maybe a bit slower. Full logs available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:23:06 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-11-27 21:20 UTC · original

Thank you for the measurements, they pointed straight at it. Fixed in v0.2.0-pre.4: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.2.0-pre.4

A texture whose host copy was let go kept its last-use stamp, so every look over the card's line sorted and locked it again and found nothing to let go. Those textures only grow in number during a session, which matches your 3.5 to 14.5 ms. The stamp is now cleared when the copy goes (the next use sets it again), so the looks pass them by.

On the 12 GB card here the looks stay under 1 ms, so I could not reproduce the over-the-line case your 10 GB card is in all the time. A 30-minute check with the same log level would be welcome. The change is in foxhound itself (commit 3d52ac8, resource.rs, let_go_idle); other forks need it too.

**@⁠readmet3xt-lab** on GitHub · 2026-11-27 21:20 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/12#issuecomment-7228351856) Thank you for the measurements, they pointed straight at it. Fixed in v0.2.0-pre.4: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.2.0-pre.4 A texture whose host copy was let go kept its last-use stamp, so every look over the card's line sorted and locked it again and found nothing to let go. Those textures only grow in number during a session, which matches your 3.5 to 14.5 ms. The stamp is now cleared when the copy goes (the next use sets it again), so the looks pass them by. On the 12 GB card here the looks stay under 1 ms, so I could not reproduce the over-the-line case your 10 GB card is in all the time. A 30-minute check with the same log level would be welcome. The change is in foxhound itself (commit 3d52ac8, `resource.rs`, `let_go_idle`); other forks need it too.
Author
Owner

@⁠notdeeney on GitHub · 2026-11-27 22:37 UTC · original

Thanks a lot, that did it. 33-minute check on the same machine (i5-12600K, 32 GB, RTX 3080 10 GB), same log level (error,victory_gpu::host=info).

Build: VIctory-NVIDIA df2daaf with your one-line change from 3d52ac8 (r.host.used.store(0, Relaxed) in let_go_idle) applied by hand, since that fork hasn't picked it up yet. Series S, DLSS performance, FSR 3 frame generation 2X, VICTORY_TEXTURE_ROOM_PERCENT=86.

before (30 min) after (33 min)
looks, avg ms each 3.5 → 14.5, rising 4.5 → 2.5, falling
recent looks > 14 ms 1.2–1.9 ms
host copies at the end 243k 363k

The card was over the line about half the time (7.0–7.9 GB in use against a 7.3–7.6 GB line, budget ~8.8 GB), but nothing degrades over the session any more: preparing stays at 40–55 ms at 7–9k draws from start to end, and "title's bytes under flights' writes" stays at 2.5–5 ms.

**@⁠notdeeney** on GitHub · 2026-11-27 22:37 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/12#issuecomment-7229480930) Thanks a lot, that did it. 33-minute check on the same machine (i5-12600K, 32 GB, RTX 3080 10 GB), same log level (`error,victory_gpu::host=info`). Build: VIctory-NVIDIA df2daaf with your one-line change from 3d52ac8 (`r.host.used.store(0, Relaxed)` in `let_go_idle`) applied by hand, since that fork hasn't picked it up yet. Series S, DLSS performance, FSR 3 frame generation 2X, `VICTORY_TEXTURE_ROOM_PERCENT=86`. | | before (30 min) | after (33 min) | |---|---|---| | looks, avg ms each | 3.5 → 14.5, rising | 4.5 → 2.5, falling | | recent looks | > 14 ms | 1.2–1.9 ms | | host copies at the end | 243k | 363k | The card was over the line about half the time (7.0–7.9 GB in use against a 7.3–7.6 GB line, budget ~8.8 GB), but nothing degrades over the session any more: preparing stays at 40–55 ms at 7–9k draws from start to end, and "title's bytes under flights' writes" stays at 2.5–5 ms.
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-11-28 10:58 UTC · original

Confirmed fixed by the reporter in a 33-minute check. Closing, thanks.

**@⁠readmet3xt-lab** on GitHub · 2026-11-28 10:58 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/12#issuecomment-7238244893) Confirmed fixed by the reporter in a 33-minute check. Closing, thanks.
This discussion has been locked. Commenting is limited to contributors.
No description provided.