[performance] RTX 4050 Laptop 6 GB / i5-13500H: frame generation leaves textures 1.4 GB of the card, RAM runs out, shaders wait; CPU-bound at 10-18 fps without it #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What you see
Prologue (heist and the cutscenes before it), Series S, DLSS Performance. Shaders were preloaded (F1 > PRELOAD SHADERS, about 40 minutes) before the run. Three problems, with numbers from the attached logs.
1. Frame generation on a 6 GB card: textures get almost none of the card, RAM runs out
v2026.12.02.02 with DLSS frame generation 2x (darner-log-fg-on-v2026.12.02.02.log). Per minute in the heist, UTC:
The texture line is the cause:
texture park (DARNER_TEX_PARK=1), frames 51000 to 51600: card 3606 MB used of a budget of 4640 MB (target 1411 MB); texture blocks on the card 4 (256 MB, 0 MB free in them); parked now 36490 textures, 2631 MB in 48 blocks of the PC's memory
play.rs (v2026.12.02.02, ~1135-1140) sets DARNER_TEXTURE_ROOM_PERCENT=80 and DARNER_TEX_PARK_LESS_MB=2300 with frame generation on: 4,640 x 80 % - 2,300 = 1,412 MB. The card is already at 3.6 GB with frame generation running, so no texture block is made. Only 256 MB of textures are on the card while about 1.5 GB of the 5,152 MB system budget stays unused, and 2.6 GB of textures are read from PC memory. Card time goes from about 8 ms (frame generation off) to 26-88 ms. 40,705 slots showed the stand-in (15,268 in the frame-generation-off run), with 441 "brought up to date although the card has no room" lines.
30dd75don the new repository ("running frame generation is not kept room for twice") fixes the same double counting from a 13 GB budget up only. On small cards the fixed 2,300 MB is most of the card. Suggestion: apply the live-room rule to small cards too, or scale TEX_PARK_LESS_MB with the budget.2. Shaders compile in play after a full preload, and wait for memory
Same run: "compiles: 634 started, 634 finished, 422 waited to start (616348 ms in all)", library "made=634 ... make_ms_each=1270". The preload finished, so these are pipelines first seen in the heist. Each costs about 1.3 s, and with PC RAM at 300-500 MB free the compile gate made 422 of them wait. In the frame-generation-off run (darner-log-fg-off-main37fbcb3.log), with about 3.7 GB RAM free, only 1 of 112 compiles waited (5 ms). So the RAM problem in section 1 also turns first-time shaders into long stalls.
ee0136e(sample-mask variants made at creation) may help part of this.3. CPU-bound at 10-18 fps with frame generation off
Frame-generation-off run on main
37fbcb3plus the small-card headroom patch (nowaa2bd4b), so a slightly older build than v2026.12.02.02. Cutscene before the heist, 10-18 fps. The F2 advisor said "LIMIT: YOUR CPU (THE GPU WAITS 41 OF EVERY 121 MS)". The submitting thread:preparing per frame, the submitting thread: 50.2 ms in its submissions: 7.0 asking the write watch, 0.5 putting the title's bytes under flights' writes, 27.5 in the lists' steps (refreshes 13.3 in 18 flushes of 5417, 4658 of them known to copy nothing, 756 on several threads; copies and fills 5.3), 7.0 for copies in the card's memory, 4.5 sending the lists
It runs at 45-60 ms a frame in that stretch. This is a hybrid CPU (4 P-cores, 8 E-cores). The submitting thread is kept on the P-cores, but the wide refresh helpers (darner-wide-*) and the list translators are not at the default DARNER_FAST_CORES=1, and carve_submit_core_alone returns early on hybrid parts. I have not measured DARNER_FAST_CORES=2 or a higher submit priority. I can run A/B builds or switches if you name them.
Note: other programs were open during the frame-generation run (a browser and audio software), taking about 6 GB of RAM and about 40 % of the CPU ("CPU PC 96 %, CPU GAME 55 %" on F3). Sections 1 and 2 still hold without them: the texture target is 1,412 MB whatever else is open.
GPU and driver
NVIDIA GeForce RTX 4050 Laptop GPU 6 GB (Resizable BAR on), driver 621.40
CPU, RAM and Windows version
Intel Core i5-13500H (4P + 8E, 16 threads), 32 GB 3200 MT/s, Windows 11 Home (build 26300)
Darner release or commit
v2026.12.02.02 (built from the tag
fa84f7e); the frame-generation-off comparison is main37fbcb3+aa2bd4bSettings
Series S, 1280x720 render, 1920x1080 output, DLSS Performance (preset K), ray tracing OFF, texture quality HALF, video memory limit AUTO. FG run: frame generation DLSS 2x, 60 fps cap. Comparison run: frame generation OFF, 30 fps cap.
Logs
Full play logs, user name in paths replaced with :
37fbcb3+ small-card patch, frame generation off, cutscene (sections 2 and 3)No crash in either run.
Are you working on a fix?
No
darner rig, F1 AUTO-DETECT row, per-start switches (DARNER_AUTO_SWITCHES, on by default, =0 turns it off) #25