[Windows / NVIDIA] Intermittent multi-second frame-time spikes during gameplay #148
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp#148
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?
@iCr3aM on GitHub · 2026-12-05 19:44 UTC · original
Summary
During gameplay, frame pacing is inconsistent with the 30 FPS cap. Several frame-time windows fall below the target, with occasional multi-second gaps between presents. The game did not crash during this run.
Environment
Xbox Series master(b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)Relevant settings and runtime details
options.ini:frame_rate=30,stream_budget=defaultLARP_FRAME_RATE=30is reported as the environment override in the log.fulldefault; the title/display mode and swap chain report 3840x2160.max_render=960x544andmax_upscale=1920x1080.0-11; other process threads can use0-19.What happened
The title requests a 33.3 ms frame interval (30 FPS). During gameplay, multiple windows report around 20–28 FPS, with frame times around 36–50 ms. There are also isolated, much longer gaps between presents.
Selected excerpts from
play.log(timestamps are UTC):The log says draws and dispatches wait for pipelines being made. At startup it reports 88,559 previous-run pipeline records queued; during the 7.6-second present gap, 3 pipelines were being made. This may be relevant, but I cannot confirm that pipeline creation caused the stalls. The reported GPU time is low in the selected windows, but this alone does not identify the cause.
Other warnings in the log
These may be unrelated to the frame-time spikes:
Steps to reproduce
The exact scene or action associated with the longest spikes is not yet known.
Expected behavior
Consistent frame pacing near the configured 30 FPS cap, without multi-second gaps.
Troubleshooting
LARP_PIPELINE_WAIT_MS=8has not yet been tested.Attachments
I will attach the sanitized log archive generated with
larp.exe zip-logs.larp-logs-1796499840.zip
Possibly related reports
These reports appear related to frame stalls, but this run is on an NVIDIA RTX 3070 and did not crash.
@iCr3aM on GitHub · 2026-12-05 21:52 UTC · original
Follow-up: longer session with
LARP_PIPELINE_WAIT_MS=8I ran a longer session with
LARP_PIPELINE_WAIT_MS=8enabled. The issue #148 environment and the 30 FPS cap were otherwise unchanged. The game did not crash, but after playing for a while I observed increasing memory use, together with audio and visual stuttering.The attached
play.logcovers approximately 1 hour 41 minutes (2026-12-06 04:04–05:45 local time, UTC+08:00). The log itself uses UTC timestamps.Frame-time evidence
The log contains repeated multi-second gaps between presents. The worst recorded gaps include 5.38 s, 4.89 s, 3.66 s, 3.29 s, and 3.24 s:
Later in the session, frame preparation also became comparatively expensive:
The very long present gaps are not explained by the reported GPU execution time alone. These readings do not identify which CPU thread or subsystem is responsible.
GPU-owned memory diagnostics
There are two
larp_gpu::regionserrors describing title-memory windows that overlap buffers owned by the GPU. The diagnostic says the overlapping window shows title-memory bytes rather than the contents held by the GPU. One occurred shortly after the 3.24-second present gap:A similar error and warning were logged at
2026-12-05T20:54:21Z. I do not know whether these memory-ownership diagnostics are related to the stuttering, visual symptoms, or increasing memory use, but they seem worth investigating.What the log does and does not establish
LARP_PIPELINE_WAIT_MS=8for this run, but the variable and its value are not written toplay.log, so the log cannot independently confirm the setting.2026-12-05T20:04:28Z, and that the title's render phases were built by20:04:50Z.0 being madefor pipelines. Some summaries report a draw dropped without a host pipeline. Pipeline waiting may still affect some frames, but it does not appear to explain all the later long gaps.play.logdoes not contain a time series for process RAM, system commit, or VRAM usage. I did not capture numeric memory readings at the start and end.Could the
larp_gpu::regionsmemory-overlap diagnostics and the later long stalls be investigated for a possible connection? Please also advise what RAM/VRAM and audio diagnostics would be most useful to capture during another reproduction.Attachment
Attach a new sanitized archive for this run, generated with:
larp-logs-1796507539.zip
@gleglezao on GitHub · 2026-12-06 00:46 UTC · original
Additional reproduction: v1.1.3 / RTX 5070 Ti 16 GB / Series X / 4K
Key symptom (user-observed): the game is completely smooth at sea, with no noticeable stutters or long freezes. As soon as I enter the city / dense urban areas, frequent microstutters begin, sometimes escalating to multi-second freezes. This is a clear environment-dependent regression: the issues are not present while navigating at sea. The log does not record player coordinates, so the urban correlation is based on the observed gameplay, while the timing numbers below come from the logs.
Environment
series-x.cmd, resolution 3840x2160, DLSS Performance, DLSS FG 2x, frame_rate=60, stream_budget=default.Critical observation: sea versus city (same session and settings)
Steps to reproduce
Log findings
Questions to maintainers
Could you suggest instrumentation to distinguish CPU submission / D3D12 synchronization stalls, VRAM residency and texture streaming, and DirectStorage decompression / resource upload contention specifically during city entry and urban gameplay?
PR #185's five CPU optimizations are enabled by default in v1.1.3. I can perform controlled A/B runs if needed (2048 MiB NVIDIA shader heap, texture streaming from Ultra to Default,
LARP_DSTORAGE_WORKERS=8), changing only one setting at a time.Attachment:
larp-logs-1796517568.zip, produced by the officiallarp.exe zip-logscommand (Windows username sanitized).larp-logs-1796517568.zip
play.log
REPORTAR-ISSUE-148-v1.1.3.txt