RTX 2080 8 GB, 32GB DDR4 3200MT/s, i7-9700k, / v1.1.3 — Changing Render Scales in F10 bloats heaps' free space by ~1 GB #367

Open
opened 2026-12-05 23:50:14 +00:00 by github-bot · 2 comments
Owner

@⁠konpersona2-cpu on GitHub · 2026-12-05 23:39 UTC · original

download download

Bug Report (8 GB GPU / v1.1.3): Toggling Render scale in F10 (1/1 → 1/2 → 1/1) mid-session leaves the old render-target allocations sitting in heaps' free space (232 MB → 1.2 GB on F9) instead of releasing/reusing the heap properly. On an 8 GB card (RTX 2080, 6.4 GB budget), that +1 GB of stranded heaps' free space pushes total VRAM over 6.4 GB (6.6 / 6.4 GB) and triggers -2005270523 (DXGI_ERROR_DEVICE_REMOVED) until restarting the game.

**@⁠konpersona2-cpu** on GitHub · 2026-12-05 23:39 UTC · [original](https://github.com/gamingwithhomie/larp/issues/367) <img width="277" height="436" alt="download" src="https://github.com/user-attachments/assets/8cb830f2-bdf9-495d-8093-ff948525465f" /> <img width="296" height="456" alt="download" src="https://github.com/user-attachments/assets/322b76af-8998-449b-8a61-1e56252cf5f3" /> Bug Report (8 GB GPU / v1.1.3): Toggling Render scale in F10 (1/1 → 1/2 → 1/1) mid-session leaves the old render-target allocations sitting in heaps' free space (232 MB → 1.2 GB on F9) instead of releasing/reusing the heap properly. On an 8 GB card (RTX 2080, 6.4 GB budget), that +1 GB of stranded heaps' free space pushes total VRAM over 6.4 GB (6.6 / 6.4 GB) and triggers -2005270523 (DXGI_ERROR_DEVICE_REMOVED) until restarting the game.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 23:50:14 +00:00
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 23:51 UTC · original

This matches the frame_reset VRAM retention another user measured in #335 (alias pool + texture objects roughly doubling after a live F10 upscaler switch, not returned 15 s later). Linking the two: a live render-scale change seems to keep the old alias pool/textures alive. As a workaround, restart after changing render scale instead of live-switching on 8 GB. Keeping open as the tracker for heap growth on frame_reset.

**@⁠gamingwithhomie** on GitHub · 2026-12-05 23:51 UTC · [original](https://github.com/gamingwithhomie/larp/issues/367#issuecomment-7447898659) This matches the frame_reset VRAM retention another user measured in #335 (alias pool + texture objects roughly doubling after a live F10 upscaler switch, not returned 15 s later). Linking the two: a live render-scale change seems to keep the old alias pool/textures alive. As a workaround, restart after changing render scale instead of live-switching on 8 GB. Keeping open as the tracker for heap growth on frame_reset.
Author
Owner

@⁠bgschf on GitHub · 2026-12-06 02:19 UTC · original

Another data point, on an RTX 4060 8 GB. Here it doesn't crash: card memory overflows into shared system memory and the game drops to 4-5 fps until restart.

Setup: RTX 4060 8 GB (PCIe 3.0 x8 on a Ryzen 7 5700G), 16 GB RAM, Windows 11, local build of main at deb2a0d (v1.1.2 + menu), series-s, 1080p, DLSS Performance + DLSS FG 2x, Reflex on, --stream-budget 2500.

Measured in one session (Windows GPU Adapter Memory counters every 2 s, next to larp's frame lines):

Dedicated Shared fps (median) "ms on the GPU" (median)
Before any change 6.74 GB 1.20 GB 16.7 0.0
After 1st render-scale change (29/30 → 1/1) 7.39 GB, settling around 7.07 1.21 GB 17.9 0.0
After 2nd change (1/1 → 1/2) ~7.2 GB (at the budget) 1.75 GB (+530 MB) 4.7 122 (max 161)
  • Each frame reset adds about 650 MB of dedicated memory that is not given back. The first one still fits under the budget on 8 GB; the second one pushes about 530 MB into shared memory, and the frame time on the card goes from ~0 to 80-160 ms and stays there even after setting the options back.
  • The fps collapse after the 2nd to 4th reset happened in all 4 sessions where I tried it, on a local v1.0.11 build and on main (deb2a0d). The memory counters were recorded only in this one.
  • Picking the scale already in use (1/1 → 1/1) is logged as "took no change": no reset and no growth.
  • With DLSS on, all three DLSS: feature made lines say render=960x544, whatever the scale.
  • Possibly related: right after the 2nd reset there are 7 larp_gpu::regions errors "title memory read inside a buffer the GPU owns" with reader=crates\larp-gpu\src\shadow.rs:2861, all on one 0x84-byte buffer taken in the first frame after the reset. Across the session there are also 16 "a window of title memory outside buffers is made partly over a buffer the GPU owns" errors, two of them within 0.2 s after the 1st reset's DLSS: feature made.

The dark start that made me change the render scale in the first place was #335 (LARP_PIPELINE_WAIT_MS=8), so with v1.1.6 I'll just stop changing it live, as suggested above.

**@⁠bgschf** on GitHub · 2026-12-06 02:19 UTC · [original](https://github.com/gamingwithhomie/larp/issues/367#issuecomment-7449849719) Another data point, on an RTX 4060 8 GB. Here it doesn't crash: card memory overflows into shared system memory and the game drops to 4-5 fps until restart. **Setup:** RTX 4060 8 GB (PCIe 3.0 x8 on a Ryzen 7 5700G), 16 GB RAM, Windows 11, local build of `main` at `deb2a0d` (v1.1.2 + menu), `series-s`, 1080p, DLSS Performance + DLSS FG 2x, Reflex on, `--stream-budget 2500`. **Measured in one session** (Windows `GPU Adapter Memory` counters every 2 s, next to larp's frame lines): | | Dedicated | Shared | fps (median) | "ms on the GPU" (median) | |---|---|---|---|---| | Before any change | 6.74 GB | 1.20 GB | 16.7 | 0.0 | | After 1st render-scale change (29/30 → 1/1) | 7.39 GB, settling around 7.07 | 1.21 GB | 17.9 | 0.0 | | After 2nd change (1/1 → 1/2) | ~7.2 GB (at the budget) | **1.75 GB (+530 MB)** | **4.7** | **122 (max 161)** | - Each frame reset adds about 650 MB of dedicated memory that is not given back. The first one still fits under the budget on 8 GB; the second one pushes about 530 MB into shared memory, and the frame time on the card goes from ~0 to 80-160 ms and stays there even after setting the options back. - The fps collapse after the 2nd to 4th reset happened in all 4 sessions where I tried it, on a local v1.0.11 build and on `main` (`deb2a0d`). The memory counters were recorded only in this one. - Picking the scale already in use (1/1 → 1/1) is logged as "took no change": no reset and no growth. - With DLSS on, all three `DLSS: feature made` lines say `render=960x544`, whatever the scale. - Possibly related: right after the 2nd reset there are 7 `larp_gpu::regions` errors "title memory read inside a buffer the GPU owns" with `reader=crates\larp-gpu\src\shadow.rs:2861`, all on one 0x84-byte buffer taken in the first frame after the reset. Across the session there are also 16 "a window of title memory outside buffers is made partly over a buffer the GPU owns" errors, two of them within 0.2 s after the 1st reset's `DLSS: feature made`. The dark start that made me change the render scale in the first place was #335 (`LARP_PIPELINE_WAIT_MS=8`), so with v1.1.6 I'll just stop changing it live, as suggested above.
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/gamingwithhomie--larp#367
No description provided.