[AMD] Frame freezes (up to ~3.8s), slow XMA audio bursts, and high RAM/VRAM pressure — prioritize physical memory/budget handling over virtual/paging #120

Open
opened 2026-12-05 19:08:00 +00:00 by github-bot · 1 comment
Owner

@⁠jonny199292 on GitHub · 2026-12-05 19:01 UTC · original

Environment

  • Target / Layer: larp-1.0.11-amd (larp-gpu, larp-hle)
  • GPU / Vendor: AMD (DX12 / ID3D12GraphicsCommandList4, hostmem / cardmem / copystat)
  • Launch flags / env: LARP_HOST_MAX_WAVE=32, LARP_PIPELINE_WORKERS=6, LARP_FRAME_RATE=60 (tested with and without LARP_NO_RT=1 and --card-budget 10240)

Summary & Priority

Reporting frame freezes, slow XMA decoding pass bursts, and ray tracing readiness/behavior on AMD.
Priority: Address physical memory / VRAM & RAM budget pressure (avoiding excessive private RAM growth, shared memory spill, and exceeding the card target), rather than relying on virtual memory / SSD paging.

Observed Issues

  1. Frame Freezes / Stutter Spikes:
    • Median frame time stays around 16.6–16.7 ms (60.0 fps), with periodic longest spikes (~220–292 ms) and severe drops when load spikes (e.g. 0.3 fps, 3830.6 ms/frame with 267 draws/frame while preparing was 11.6 ms and GPU time on that line was 0.0 ms).
  2. Slow XMA Audio Decoding Bursts:
    • Dense bursts of DEBUG larp_hle::modules::audio: slow XMA decoding pass coincide with frame pacing drops and heavy memory/resource transitions.
  3. Physical Memory (RAM & VRAM) Growth vs. Paging:
    • As progression/loading advances, private RAM climbs up to ~25.5–27.8 GB, shared memory rises to ~911–1036 MB, and VRAM usage can cross the layer target (e.g., 13269 MB in use vs. 13089 MB target), accompanied by lower FPS (8.0–20.1 fps in heavy windows) and high OWN small-block counts (~2.12M blocks / 2606 MB in copystat).
    • Testing --card-budget 10240 kept private RAM much lower (~7.0–9.1 GB) with 16.6–16.7 ms median.
  4. Ray Tracing (larp_gpu::rt):
    • Requesting a review/fix for RT path stability and scratch/alignment handling (placed, title_scratch, record_jobs, 256-byte alignment, list scratch, and host_compute_lost()), including cases where console structure walks occur or RT is toggled (LARP_NO_RT).

Reproduction & Logs

  • Reproduce by launching game_scarlett_master.exe with -skipToIIS and advancing through loading/gameplay while logging larp_gpu / larp_hle diagnostics.
  • Can attach relevant log excerpts (times between presents, larp_gpu::hostmem, larp_gpu::copystat, larp_hle::modules::audio, larp_gpu::rt).

scene_debug.log

run_scarlett13_xmem.log
run_scarlett13_rel_v2.log
run_scarlett13_rel.log

**@⁠jonny199292** on GitHub · 2026-12-05 19:01 UTC · [original](https://github.com/gamingwithhomie/larp/issues/120) ### Environment - **Target / Layer:** `larp-1.0.11-amd` (`larp-gpu`, `larp-hle`) - **GPU / Vendor:** AMD (DX12 / `ID3D12GraphicsCommandList4`, `hostmem` / `cardmem` / `copystat`) - **Launch flags / env:** `LARP_HOST_MAX_WAVE=32`, `LARP_PIPELINE_WORKERS=6`, `LARP_FRAME_RATE=60` (tested with and without `LARP_NO_RT=1` and `--card-budget 10240`) ### Summary & Priority Reporting frame freezes, `slow XMA decoding pass` bursts, and ray tracing readiness/behavior on AMD. **Priority:** Address **physical memory / VRAM & RAM budget pressure** (avoiding excessive private RAM growth, shared memory spill, and exceeding the card target), rather than relying on virtual memory / SSD paging. ### Observed Issues 1. **Frame Freezes / Stutter Spikes:** - Median frame time stays around `16.6–16.7 ms` (`60.0 fps`), with periodic `longest` spikes (`~220–292 ms`) and severe drops when load spikes (e.g. `0.3 fps, 3830.6 ms/frame` with `267 draws/frame` while `preparing` was `11.6 ms` and GPU time on that line was `0.0 ms`). 2. **Slow XMA Audio Decoding Bursts:** - Dense bursts of `DEBUG larp_hle::modules::audio: slow XMA decoding pass` coincide with frame pacing drops and heavy memory/resource transitions. 3. **Physical Memory (RAM & VRAM) Growth vs. Paging:** - As progression/loading advances, private RAM climbs up to `~25.5–27.8 GB`, shared memory rises to `~911–1036 MB`, and VRAM usage can cross the layer target (e.g., `13269 MB` in use vs. `13089 MB` target), accompanied by lower FPS (`8.0–20.1 fps` in heavy windows) and high `OWN` small-block counts (`~2.12M` blocks / `2606 MB` in `copystat`). - Testing `--card-budget 10240` kept private RAM much lower (`~7.0–9.1 GB`) with `16.6–16.7 ms` median. 4. **Ray Tracing (`larp_gpu::rt`):** - Requesting a review/fix for RT path stability and scratch/alignment handling (`placed`, `title_scratch`, `record_jobs`, `256`-byte alignment, `list scratch`, and `host_compute_lost()`), including cases where console structure walks occur or RT is toggled (`LARP_NO_RT`). ### Reproduction & Logs - Reproduce by launching `game_scarlett_master.exe` with `-skipToIIS` and advancing through loading/gameplay while logging `larp_gpu` / `larp_hle` diagnostics. - Can attach relevant log excerpts (`times between presents`, `larp_gpu::hostmem`, `larp_gpu::copystat`, `larp_hle::modules::audio`, `larp_gpu::rt`). [scene_debug.log](https://github.com/user-attachments/files/35919230/scene_debug.log) <!-- Failed to upload "run_scarlett15_budget10g.log" --> <!-- Failed to upload "run_scarlett14_orig_xmem.log" --> <!-- Failed to upload "run_scarlett13_xmem_v2.log" --> [run_scarlett13_xmem.log](https://github.com/user-attachments/files/35919231/run_scarlett13_xmem.log) [run_scarlett13_rel_v2.log](https://github.com/user-attachments/files/35919228/run_scarlett13_rel_v2.log) [run_scarlett13_rel.log](https://github.com/user-attachments/files/35919229/run_scarlett13_rel.log) <!-- Failed to upload "run_scarlett12_clean.log" -->
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 19:08:01 +00:00
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 21:02 UTC · original

The 3.8s freezes + audio bursts pattern = host paging under memory pressure. Things in your control: options.ini stream_budget lower (e.g. 2500), F10 Texture detail 1 level down, and a fixed Windows pagefile on SSD (not system-managed on a full drive). In code, v1.1.1 included #157 (texture row reads) and #145 (pacer); if freezes persist on v1.1.1, attach zip-logs and note your RAM/VRAM/pagefile setup - the log shows our memory counters per second.

**@⁠gamingwithhomie** on GitHub · 2026-12-05 21:02 UTC · [original](https://github.com/gamingwithhomie/larp/issues/120#issuecomment-7445314097) The 3.8s freezes + audio bursts pattern = host paging under memory pressure. Things in your control: `options.ini stream_budget` lower (e.g. 2500), F10 Texture detail 1 level down, and a fixed Windows pagefile on SSD (not system-managed on a full drive). In code, v1.1.1 included #157 (texture row reads) and #145 (pacer); if freezes persist on v1.1.1, attach zip-logs and note your RAM/VRAM/pagefile setup - the log shows our memory counters per second.
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#120
No description provided.