Stuttering problem #2907

Open
opened 2026-12-01 17:16:23 +00:00 by ayushkaushish24-del · 2 comments
ayushkaushish24-del commented 2026-12-01 17:16:23 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by ayushkaushish24-del on 2026-12-01T17:16:23Z.


What happens

My game is stuttering even when the fps are above 20 with frame generation on and dlss is not even working it is showing only default game upscaling even after saving the settings

Commit

December 1,2026

System

Win 11, Rtx 4060, i513400f, Ram-32 gb ddr4

Where

check

Command and steps

It happens every time and to launch the game I used launcher.bat

Output

I don't know what to write here
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6726218860 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2907). Originally posted by [ayushkaushish24-del](https://github.com/ayushkaushish24-del) on 2026-12-01T17:16:23Z. --- ### What happens My game is stuttering even when the fps are above 20 with frame generation on and dlss is not even working it is showing only default game upscaling even after saving the settings ### Commit December 1,2026 ### System Win 11, Rtx 4060, i513400f, Ram-32 gb ddr4 ### Where check ### Command and steps It happens every time and to launch the game I used launcher.bat ### Output ```text I don't know what to write here ```
Alanls-mx commented 2026-12-01 21:18:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Alanls-mx on 2026-12-01T21:18:11Z.


Additional first-mission datapoint on Windows, RTX 4060 8 GB / 16 GB RAM, Series S profile: visual FPS samples were 11–33 in the prison scene and 8.5–26 in the transition/gameplay area, with roughly 38–62 ms per frame. The game log recorded 32 pipeline waits at the 8 ms budget; several driver PSO creations took seconds. Host-memory pressure was reported at 2,811 MiB physical free on frame 8, and later system sampling reached about 400 MiB free. This run did not complete the full assault.

Plan: replay the same prison/transition/assault route after warming the newly observed PSOs, record FPS/frame time plus free RAM/VRAM, and separate pipeline waits from scene render/streaming cost.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7326048655 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2907#issuecomment-7326048655). Originally posted by [Alanls-mx](https://github.com/Alanls-mx) on 2026-12-01T21:18:11Z. --- Additional first-mission datapoint on Windows, RTX 4060 8 GB / 16 GB RAM, Series S profile: visual FPS samples were 11–33 in the prison scene and 8.5–26 in the transition/gameplay area, with roughly 38–62 ms per frame. The game log recorded 32 pipeline waits at the 8 ms budget; several driver PSO creations took seconds. Host-memory pressure was reported at 2,811 MiB physical free on frame 8, and later system sampling reached about 400 MiB free. This run did not complete the full assault. Plan: replay the same prison/transition/assault route after warming the newly observed PSOs, record FPS/frame time plus free RAM/VRAM, and separate pipeline waits from scene render/streaming cost.
fiestorra commented 2026-12-01 23:23:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T23:23:03Z.


Two different things in one report, and both have an answer.

1. "DLSS is not even working" on a 4060 - most likely the files are not there. DLSS needs NVIDIA's own DLLs, which this repository does not carry: d3d12\Get-NVIDIA-DLSS.cmd once (about 70 MB, from NVIDIA's GitHub) and then the layer can start DLSS. Launcher.bat does not fetch them. And when they are missing, the fallback is silent by design (play-nvidia.ps1 only prints "DLSS only where it can be ... falls back to the stretch") - which is why it looks like DLSS "not working" instead of "DLSS not installed".

2. The stutter at 20+ FPS on an 8 GB card is a class this repository knows, and findings.md has it measured: when the title's textures do not fit, the card spends frames in MakeResident (35 ms a frame in one run, the frame 64.6 ms against 33.3 without). That looks exactly like "stuttering even though the FPS is above 20": the median is fine and every so often a frame takes twice as long.

How to tell whether it is that, in one run, on play-nvidia.ps1:

d3d12\scripts\play-nvidia.ps1 -Exe <your package> -Adapter 4060 -SeriesS -Log -More @{ LEONIDA_GPU_TIMING='1' }
  • -Adapter 4060 is worth passing even without an integrated chip: it makes the log name the card the layer took, and if the name is not the NVIDIA one, that was the problem.
  • in %LOCALAPPDATA%\Leonida\logs\play-*.log, look for MakeResident and for a device-removed line. Those two are the 8 GB class; a long tail without them points somewhere else.

What can be tried today, while the guard below is not merged:

  • LEONIDA_TEXTURE_ROOM_PERCENT (50 to 97, 90 by default): the share of the card's budget that host copies of the title's textures may take. Lowering it to 75 or 70 is the smallest step - pass it with -More @{ LEONIDA_TEXTURE_ROOM_PERCENT='75' }.
  • -SeriesS rather than Series X: half the render height, half the texture pressure, and it is what the 8 GiB reports are measured on.

#2929 is the pull request that proposes to stop this at the source (a guard that refuses a new 64 MiB texture block when the card is at 95 % of its budget, plus a bigger stack for the pipeline workers that NVIDIA's compiler overflows on 8 GiB cards). It is not merged - I verified it and it needs work (its second fix is not in the code) - but that is the direction.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329277826 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2907#issuecomment-7329277826). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T23:23:03Z. --- **Two different things in one report, and both have an answer.** **1. "DLSS is not even working" on a 4060 - most likely the files are not there.** DLSS needs NVIDIA's own DLLs, which this repository does not carry: **`d3d12\Get-NVIDIA-DLSS.cmd` once** (about 70 MB, from NVIDIA's GitHub) and then the layer can start DLSS. **`Launcher.bat` does not fetch them.** And when they are missing, the fallback is **silent** by design (`play-nvidia.ps1` only prints "DLSS only where it can be ... falls back to the stretch") - which is why it looks like DLSS "not working" instead of "DLSS not installed". **2. The stutter at 20+ FPS on an 8 GB card is a class this repository knows**, and `findings.md` has it measured: when the title's textures do not fit, the card spends frames in `MakeResident` (35 ms a frame in one run, the frame 64.6 ms against 33.3 without). **That looks exactly like "stuttering even though the FPS is above 20"**: the median is fine and every so often a frame takes twice as long. **How to tell whether it is that, in one run**, on `play-nvidia.ps1`: ```powershell d3d12\scripts\play-nvidia.ps1 -Exe <your package> -Adapter 4060 -SeriesS -Log -More @{ LEONIDA_GPU_TIMING='1' } ``` - **`-Adapter 4060` is worth passing even without an integrated chip**: it makes the log name the card the layer took, and if the name is not the NVIDIA one, that was the problem. - **in `%LOCALAPPDATA%\Leonida\logs\play-*.log`, look for `MakeResident`** and for a device-removed line. **Those two are the 8 GB class**; a long tail without them points somewhere else. **What can be tried today, while the guard below is not merged:** - **`LEONIDA_TEXTURE_ROOM_PERCENT`** (50 to 97, **90 by default**): the share of the card's budget that host copies of the title's textures may take. **Lowering it to 75 or 70 is the smallest step** - pass it with `-More @{ LEONIDA_TEXTURE_ROOM_PERCENT='75' }`. - **`-SeriesS`** rather than Series X: half the render height, half the texture pressure, and it is what the 8 GiB reports are measured on. **#2929 is the pull request that proposes to stop this at the source** (a guard that refuses a new 64 MiB texture block when the card is at 95 % of its budget, plus a bigger stack for the pipeline workers that NVIDIA's compiler overflows on 8 GiB cards). **It is not merged** - I verified it and it needs work (its second fix is not in the code) - but that is the direction. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
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
ProjectLeonida/mandy#2907
No description provided.