perf(gpu): reduce CPU overhead and improve 1%/0.1% lows #185

Manually merged
github merged 8 commits from github-bot/gh-185 into gh-pr/185/base 2026-12-05 22:43:33 +00:00 AGit
Owner

@⁠kirksw on GitHub · 2026-12-05 20:51 UTC · original
kirksw:perf/cpu-and-lows → main · +845 −94 · 10 files · 8 commits · merged 2026-12-05 21:40 UTC

TL;DR

Five targeted, D3D12-safe, zero-RAM-cost CPU-overhead optimizations for larp-gpu, driven by fine-grained Tracy profiling on an RTX 4090 / i7-12700K where open-world gameplay is 100% CPU-bound (0.6 ms GPU wait vs 33.3 ms/f baseline frame time):

  • RAM cost: Zero extra RAM (net slight reduction from fewer pooled copy command lists; background reaper capped at 64 MiB)
  • Rollback-safe: Every optimization is individually toggleable via an env var (<FLAG>=0 to disable, documented in docs/environment-variables.md), with no shader-cache invalidation.

Overall Progression vs Baseline

Build Draws/f Avg FPS (ms) Median 1% Low (P99)
Baseline (f9fb54c, 48.8 min) 6,714 31.0 fps (33.6 ms) 31.2 ms 15.4 fps (65.1 ms)
Upstream 0f03265 (pre-patches) 7,497 33.9 fps (29.5 ms) 28.1 ms 20.2 fps (49.5 ms)
This PR (all 5 ON) 5,900–7,850 37.4–41.7 fps (24.0–26.8 ms) 23.1–26.3 ms 22.1–29.9 fps (33.5–45.3 ms)

Testing note: During development we wired temporary live toggles into the F10 overlay menu in our local testing build so we could flip each optimization ON/OFF while standing in the exact same scene. Those UI toggles were stripped from this branch to keep the PR focused and minimal, leaving only the clean LARP_* environment-variable switches in crates/larp-gpu/src/perf_flags.rs.


Test Machine & Configuration

  • CPU: Intel Core i7-12700K (12C / 20T)
  • GPU: MSI RTX 4090 Gaming Trio (24 GB VRAM, NVIDIA DRS shader heap profile 2048 MiB, D3D12 Agility SDK 1.620.2)
  • RAM: 32 GB DDR5-6400 CL40
  • Storage: Samsung 980 PRO 2 TB NVMe SSD
  • Console profile: --console series-x (4K 3840x2160, Hardware RT ON Tier 1.2, DLSS Preset M via Streamline, Frame Generation OFF)
  • Active settings.ini overrides:
    • frame_rate = 60, desired_fps = 60
    • frame_generation = off, reflex = off
    • lighting_quality = ultra, reflection_quality = ultra
    • hair_gpu_memory_budget = ultra, hair_simulation_quality = ultra

Profiling

Captured 10-second open-world traces with Tracy (--profile tracy --features tracy, LARP_TRACY_FINE=1) and exported zone totals via tracy-csvexport (baseline: 251 frames / 48M zones; follow-up: 171 frames / 23M zones). Each hotspot mapped directly to one of the five changes below:

Tracy Hotspot Cost / Frequency Root Cause Addressed By
views: create / mirror slot 12.0 ms/f (30.6k / 5.7k calls) 8 recording threads serialized on HostHeap::made + WC flushes LARP_OPT_VIEW_MIRROR
list: reset / close 12.2 ms/f (~216 lists/f) Double HostList::clear() + per-list recycle locks LARP_OPT_LIST_REUSE
draw: heap buffer views pass 7.7 ms/f (5,563 calls/f) Repeated heap walks when bound heap hadn't changed LARP_FAST_HEAP_TABLES
release_held (wave 2) 7.7 ms/f (14.3 ms max spike) Global RELEASING mutex contention + sync COM drops LARP_OPT_RELEASE_HELD
copy_send / small_send 6.5–8.8 ms/f (10.1 ms max spike) Split WDDM copy submits + per-copy COM clones LARP_OPT_COPY_BATCH

Changes

  1. Heap table fast-path (LARP_FAST_HEAP_TABLES)
    • Why: heap_buffers() and view_shifts() were walking descriptor heaps on ~5,500 draws/frame even though the bound heap almost never changes mid-list.
    • What: Caches the resolved GPU table address per (list, bound heaps) (invalidated on set_heaps), hitting 99.4% of lookups.
  2. Copy-queue batching & enhanced barriers (LARP_OPT_COPY_BATCH)
    • Why: Copy submissions were splitting disjoint uploads across separate ExecuteCommandLists WDDM calls, cloning COM handles per copy, and stalling COPY_LISTS during allocator resets.
    • What: Unifies disjoint piece/small/heapfeed copies into a single borrowed submission, coalesces contiguous buffer copies, uses a single command list with a D3D12-valid COPY_DEST → COPY_DEST global enhanced barrier between overlapping runs, and drops finished leases outside the pool lock.
  3. Descriptor view-mirroring contention & WC write reduction (LARP_OPT_VIEW_MIRROR)
    • Why: All 8 recording threads serialized on a single HostHeap::made mutex and paid redundant D3D12 null-view calls, mutex locks, and write-combined GPU memory flushes on ~30k view updates/frame.
    • What: Shards HostHeap::made into 64 cache-line-aligned stripes, skips redundant null-view writes and non-buffer map locks, and shadows strides in CPU atomics to avoid no-op WC flushes.
  4. Command-list reuse & recycle batching (LARP_OPT_LIST_REUSE)
    • Why: Every recycled list (~216/frame) was cleared twice (~10 mutexes each time) and acquired pool/state locks individually per list.
    • What: Tracks whether a list is dirty or moved owned textures to skip redundant clears/locks, and batches SPARE_STATES/IDLE lock acquisition once per landed batch.
  5. Non-blocking speculative queue draining & bounded background COM reaper (LARP_OPT_RELEASE_HELD)
    • Why: Speculative release_held calls blocked submit for 4–14 ms waiting on the global RELEASING mutex, and synchronous COM Release() of completed upload buffers stalled larp-relay.
    • What: Lets speculative queue/helper/watcher drains return on lock contention with a RECHECK handoff (keeping fence signals and Present strictly synchronous), and offloads release-only upload/shadow COM drops to a low-priority larp-reaper thread capped at 64 MiB (while keeping side-effectful retirements like rt::Remake synchronous).
  6. Documentation
    • Documents all five LARP_* environment variables and defaults in docs/environment-variables.md.

Live In-Game A/B Trial Results (Series X · 4K · Hardware RT ON · RTX 4090)

Same session, matched scenes (toggled live via local F10 test menu):

Optimization State Draws/f Avg FPS (ms) Median Prep 1% Low (P99) Worst-Frame Low
LARP_OPT_RELEASE_HELD ON 5,932 41.2 fps (24.3 ms) 24.1 ms 7.2 ms 29.5 fps (33.9 ms) 25.4 fps (39.4 ms)
LARP_OPT_RELEASE_HELD OFF 5,889 38.4 fps (26.0 ms) 24.6 ms 8.4 ms 25.0 fps (40.0 ms) 21.9 fps (45.6 ms)
LARP_OPT_LIST_REUSE ON 4,390 40.5 fps (24.7 ms) 23.0 ms 5.9 ms 26.2 fps (38.4 ms) (peak 29.7) 22.1 fps (45.8 ms)
LARP_OPT_LIST_REUSE OFF 4,367 37.9 fps (26.4 ms) 23.6 ms 6.4 ms 21.4 fps (46.7 ms) 18.5 fps (54.0 ms)
LARP_OPT_VIEW_MIRROR (above 64-stripe made) ON 4,899 41.3 fps (24.2 ms) 23.2 ms 6.6 ms 23.9 fps (41.9 ms) 21.7 fps (46.1 ms)
LARP_OPT_VIEW_MIRROR OFF 4,999 40.3 fps (24.8 ms) 26.5 ms 6.7 ms 22.2 fps (45.0 ms) 20.5 fps (48.7 ms)
LARP_OPT_COPY_BATCH ON 6,154 39.3 fps (25.5 ms) 24.1 ms 7.1 ms 25.5 fps (39.2 ms) 22.1 fps (45.7 ms)
LARP_OPT_COPY_BATCH OFF 7,558 35.0 fps (28.7 ms) 26.4 ms 10.3 ms 22.7 fps (44.8 ms) 21.8 fps (46.4 ms)

Verification

  • cargo check --release --locked -p larp and cargo check --release --locked -p larp-gpu --features diagnostics pass with zero new warnings.
  • No changes to crates/larp-shader or shader_cache.rs (does not invalidate existing shader/pipeline caches).
  • Every optimization can be disabled individually at launch via <FLAG>=0 for clean regression isolation.

Made with assistance of AI:

  • Antigravity w/ Gemini 4 Neon
  • Codex w/ Astra 6.2
**@⁠kirksw** on GitHub · 2026-12-05 20:51 UTC · [original](https://github.com/gamingwithhomie/larp/pull/185) `kirksw:perf/cpu-and-lows` → `main` · +845 −94 · 10 files · 8 commits · merged 2026-12-05 21:40 UTC ## TL;DR Five targeted, D3D12-safe, zero-RAM-cost CPU-overhead optimizations for `larp-gpu`, driven by fine-grained **Tracy** profiling on an RTX 4090 / i7-12700K where open-world gameplay is 100% CPU-bound (`0.6 ms` GPU wait vs `33.3 ms/f` baseline frame time): - **RAM cost:** Zero extra RAM (net slight reduction from fewer pooled copy command lists; background reaper capped at `64 MiB`) - **Rollback-safe:** Every optimization is individually toggleable via an env var (`<FLAG>=0` to disable, documented in `docs/environment-variables.md`), with no shader-cache invalidation. ### Overall Progression vs Baseline | Build | Draws/f | Avg FPS (ms) | Median | **1% Low (P99)** | |---|---|---|---|---| | Baseline (`f9fb54c`, 48.8 min) | 6,714 | 31.0 fps (33.6 ms) | 31.2 ms | 15.4 fps (65.1 ms) | | Upstream `0f03265` (pre-patches) | 7,497 | 33.9 fps (29.5 ms) | 28.1 ms | 20.2 fps (49.5 ms) | | **This PR (all 5 ON)** | 5,900–7,850 | **37.4–41.7 fps (24.0–26.8 ms)** | **23.1–26.3 ms** | **22.1–29.9 fps (33.5–45.3 ms)** | > **Testing note:** During development we wired temporary live toggles into the `F10` overlay menu in our local testing build so we could flip each optimization ON/OFF while standing in the exact same scene. Those UI toggles were stripped from this branch to keep the PR focused and minimal, leaving only the clean `LARP_*` environment-variable switches in `crates/larp-gpu/src/perf_flags.rs`. --- ## Test Machine & Configuration - **CPU:** Intel Core i7-12700K (12C / 20T) - **GPU:** MSI RTX 4090 Gaming Trio (24 GB VRAM, NVIDIA DRS shader heap profile `2048 MiB`, D3D12 Agility SDK `1.620.2`) - **RAM:** 32 GB DDR5-6400 CL40 - **Storage:** Samsung 980 PRO 2 TB NVMe SSD - **Console profile:** `--console series-x` (4K `3840x2160`, Hardware RT ON Tier 1.2, DLSS Preset M via Streamline, Frame Generation OFF) - **Active `settings.ini` overrides:** - `frame_rate = 60`, `desired_fps = 60` - `frame_generation = off`, `reflex = off` - `lighting_quality = ultra`, `reflection_quality = ultra` - `hair_gpu_memory_budget = ultra`, `hair_simulation_quality = ultra` --- ## Profiling Captured 10-second open-world traces with **Tracy** (`--profile tracy --features tracy`, `LARP_TRACY_FINE=1`) and exported zone totals via `tracy-csvexport` (baseline: 251 frames / 48M zones; follow-up: 171 frames / 23M zones). Each hotspot mapped directly to one of the five changes below: | Tracy Hotspot | Cost / Frequency | Root Cause | Addressed By | |---|---|---|---| | `views: create / mirror slot` | `12.0 ms/f` (`30.6k` / `5.7k` calls) | 8 recording threads serialized on `HostHeap::made` + WC flushes | `LARP_OPT_VIEW_MIRROR` | | `list: reset / close` | `12.2 ms/f` (~216 lists/f) | Double `HostList::clear()` + per-list recycle locks | `LARP_OPT_LIST_REUSE` | | `draw: heap buffer views pass` | `7.7 ms/f` (`5,563` calls/f) | Repeated heap walks when bound heap hadn't changed | `LARP_FAST_HEAP_TABLES` | | `release_held` *(wave 2)* | `7.7 ms/f` (`14.3 ms` max spike) | Global `RELEASING` mutex contention + sync COM drops | `LARP_OPT_RELEASE_HELD` | | `copy_send` / `small_send` | `6.5–8.8 ms/f` (`10.1 ms` max spike) | Split WDDM copy submits + per-copy COM clones | `LARP_OPT_COPY_BATCH` | --- ## Changes 1. **Heap table fast-path (`LARP_FAST_HEAP_TABLES`)** - *Why:* `heap_buffers()` and `view_shifts()` were walking descriptor heaps on ~5,500 draws/frame even though the bound heap almost never changes mid-list. - *What:* Caches the resolved GPU table address per `(list, bound heaps)` (invalidated on `set_heaps`), hitting **99.4%** of lookups. 2. **Copy-queue batching & enhanced barriers (`LARP_OPT_COPY_BATCH`)** - *Why:* Copy submissions were splitting disjoint uploads across separate `ExecuteCommandLists` WDDM calls, cloning COM handles per copy, and stalling `COPY_LISTS` during allocator resets. - *What:* Unifies disjoint piece/small/heapfeed copies into a single borrowed submission, coalesces contiguous buffer copies, uses a single command list with a D3D12-valid `COPY_DEST → COPY_DEST` global enhanced barrier between overlapping runs, and drops finished leases outside the pool lock. 3. **Descriptor view-mirroring contention & WC write reduction (`LARP_OPT_VIEW_MIRROR`)** - *Why:* All 8 recording threads serialized on a single `HostHeap::made` mutex and paid redundant D3D12 null-view calls, mutex locks, and write-combined GPU memory flushes on ~30k view updates/frame. - *What:* Shards `HostHeap::made` into 64 cache-line-aligned stripes, skips redundant null-view writes and non-buffer map locks, and shadows `strides` in CPU atomics to avoid no-op WC flushes. 4. **Command-list reuse & recycle batching (`LARP_OPT_LIST_REUSE`)** - *Why:* Every recycled list (~216/frame) was cleared twice (~10 mutexes each time) and acquired pool/state locks individually per list. - *What:* Tracks whether a list is dirty or moved owned textures to skip redundant clears/locks, and batches `SPARE_STATES`/`IDLE` lock acquisition once per landed batch. 5. **Non-blocking speculative queue draining & bounded background COM reaper (`LARP_OPT_RELEASE_HELD`)** - *Why:* Speculative `release_held` calls blocked `submit` for 4–14 ms waiting on the global `RELEASING` mutex, and synchronous COM `Release()` of completed upload buffers stalled `larp-relay`. - *What:* Lets speculative queue/helper/watcher drains return on lock contention with a `RECHECK` handoff (keeping fence signals and `Present` strictly synchronous), and offloads release-only upload/shadow COM drops to a low-priority `larp-reaper` thread capped at `64 MiB` (while keeping side-effectful retirements like `rt::Remake` synchronous). 6. **Documentation** - Documents all five `LARP_*` environment variables and defaults in `docs/environment-variables.md`. --- ## Live In-Game A/B Trial Results (Series X · 4K · Hardware RT ON · RTX 4090) Same session, matched scenes (toggled live via local F10 test menu): | Optimization | State | Draws/f | Avg FPS (ms) | Median | Prep | **1% Low (P99)** | **Worst-Frame Low** | |---|---|---|---|---|---|---|---| | `LARP_OPT_RELEASE_HELD` | **ON** | 5,932 | **41.2 fps (24.3 ms)** | 24.1 ms | **7.2 ms** | **29.5 fps (33.9 ms)** | **25.4 fps (39.4 ms)** | | `LARP_OPT_RELEASE_HELD` | OFF | 5,889 | 38.4 fps (26.0 ms) | 24.6 ms | 8.4 ms | 25.0 fps (40.0 ms) | 21.9 fps (45.6 ms) | | `LARP_OPT_LIST_REUSE` | **ON** | 4,390 | **40.5 fps (24.7 ms)** | 23.0 ms | **5.9 ms** | **26.2 fps (38.4 ms)** *(peak 29.7)* | **22.1 fps (45.8 ms)** | | `LARP_OPT_LIST_REUSE` | OFF | 4,367 | 37.9 fps (26.4 ms) | 23.6 ms | 6.4 ms | 21.4 fps (46.7 ms) | 18.5 fps (54.0 ms) | | `LARP_OPT_VIEW_MIRROR` *(above 64-stripe `made`)* | **ON** | 4,899 | **41.3 fps (24.2 ms)** | **23.2 ms** | 6.6 ms | **23.9 fps (41.9 ms)** | **21.7 fps (46.1 ms)** | | `LARP_OPT_VIEW_MIRROR` | OFF | 4,999 | 40.3 fps (24.8 ms) | 26.5 ms | 6.7 ms | 22.2 fps (45.0 ms) | 20.5 fps (48.7 ms) | | `LARP_OPT_COPY_BATCH` | **ON** | 6,154 | **39.3 fps (25.5 ms)** | **24.1 ms** | **7.1 ms** | **25.5 fps (39.2 ms)** | **22.1 fps (45.7 ms)** | | `LARP_OPT_COPY_BATCH` | OFF | 7,558 | 35.0 fps (28.7 ms) | 26.4 ms | 10.3 ms | 22.7 fps (44.8 ms) | 21.8 fps (46.4 ms) | --- ## Verification - `cargo check --release --locked -p larp` and `cargo check --release --locked -p larp-gpu --features diagnostics` pass with zero new warnings. - No changes to `crates/larp-shader` or `shader_cache.rs` (does not invalidate existing shader/pipeline caches). - Every optimization can be disabled individually at launch via `<FLAG>=0` for clean regression isolation. --- Made with assistance of AI: - Antigravity w/ Gemini 4 Neon - Codex w/ Astra 6.2
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 20:53:08 +00:00
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 20:53 UTC · original

Thank you - queued for review. Note it currently conflicts with current main (v1.1.1 just landed: #142/#147/#109 pipeline + translator changes), so a rebase will be needed; please keep the per-change perf numbers (1%/0.1% lows methodology) on the PR so we can weigh each hunk. Review next round.

**@⁠gamingwithhomie** on GitHub · 2026-12-05 20:53 UTC · [original](https://github.com/gamingwithhomie/larp/pull/185#issuecomment-7445194122) Thank you - queued for review. Note it currently conflicts with current main (v1.1.1 just landed: #142/#147/#109 pipeline + translator changes), so a rebase will be needed; please keep the per-change perf numbers (1%/0.1% lows methodology) on the PR so we can weigh each hunk. Review next round.
github-bot force-pushed github-bot/gh-185 from 3c3a9c0b32 to 8a3467585c 2026-12-05 21:22:46 +00:00 Compare
github-bot changed target branch from main to gh-pr/185/base 2026-12-05 21:48:00 +00:00
Author
Owner

@⁠aptenstudio on GitHub · 2026-12-05 21:53 UTC · original

Thanks for this, the profiling write-up made it easy to follow. Follow-up now that it's merged: a review found that the larp-reaper 64 MiB budget (LARP_OPT_RELEASE_HELD) doesn't actually bound what it holds. It's still the case on main (crates/larp-gpu/src/host.rs, the unified copy path around L6218–6240 and the readback path around L6281–6290):

  • In the unified copy path, every destination Arc<Shadow> goes into retired_shadows and on to retire_release without being charged. Pieces are charged by copied length while their whole source/destination resources are retained. So a batch can retain hundreds of MiB while counting as a few, and the reaper delays its release.
  • Even standalone uploads are charged by send.len / q.len, not the allocation. staging.rs reuses any standalone allocation with made.len >= len, and the heap-feed range can shrink between allocating and queueing, so a large buffer can be charged as a small copy.

Suggested fix, which keeps the reaper for what it can budget:

  • Retire pieces and destination shadows synchronously, as before the PR (retire(...), dropped in bury once the submission finishes).
  • Send only the standalone upload buffers to retire_release.
  • Charge those buffers by their allocated width.
+/// What `buffers` hold, by their own sizes (a staging allocation can be longer than the
+/// bytes copied from it): the charge [`retire_release`] counts against `REAPER_BYTE_BUDGET`.
+fn buffers_bytes(buffers: &[ID3D12Resource]) -> usize {
+    buffers.iter().fold(0usize, |acc, b| {
+        // SAFETY: a live resource.
+        let width = unsafe { b.GetDesc() }.Width;
+        acc.saturating_add(usize::try_from(width).unwrap_or(usize::MAX))
+    })
+}

In the unified copy path:

-            let mut retired_bytes: usize = pieces
-                .iter()
-                .fold(0usize, |acc, c| acc.saturating_add(c.len as usize));
             ...
-                    retired_bytes = retired_bytes.saturating_add(send.len as usize);
             ...
-                        retired_bytes = retired_bytes.saturating_add(q.len as usize);
             ...
-            if !pieces.is_empty() || !retired_up.is_empty() || !retired_shadows.is_empty() {
-                retire_release(retired_bytes, (pieces, retired_up, retired_shadows));
+            if !pieces.is_empty() || !retired_shadows.is_empty() {
+                retire((pieces, retired_shadows));
+            }
+            if !retired_up.is_empty() {
+                retire_release(buffers_bytes(&retired_up), retired_up);
             }

The readback path gets the same change: drop retired_bytes and call retire_release(buffers_bytes(&retired_up), retired_up).

In-game A/B on 1.1.2 with the same settings: the merged code gave noticeably more hiccups than the same build with this fix applied.

The same review found no other problems:

  • The heap-table cache is invalidated on set_heaps.
  • No lost RECHECK handoff.
  • The strides shadow is race-free.
  • The coalesced copies with overlapping runs are correctly ordered by the global COPY_DEST → COPY_DEST barrier.
**@⁠aptenstudio** on GitHub · 2026-12-05 21:53 UTC · [original](https://github.com/gamingwithhomie/larp/pull/185#issuecomment-7446119910) Thanks for this, the profiling write-up made it easy to follow. Follow-up now that it's merged: a review found that the `larp-reaper` 64 MiB budget (`LARP_OPT_RELEASE_HELD`) doesn't actually bound what it holds. It's still the case on `main` (`crates/larp-gpu/src/host.rs`, the unified copy path around L6218–6240 and the readback path around L6281–6290): - In the unified copy path, every destination `Arc<Shadow>` goes into `retired_shadows` and on to `retire_release` without being charged. Pieces are charged by copied length while their whole source/destination resources are retained. So a batch can retain hundreds of MiB while counting as a few, and the reaper delays its release. - Even standalone uploads are charged by `send.len` / `q.len`, not the allocation. `staging.rs` reuses any standalone allocation with `made.len >= len`, and the heap-feed range can shrink between allocating and queueing, so a large buffer can be charged as a small copy. Suggested fix, which keeps the reaper for what it can budget: - Retire pieces and destination shadows synchronously, as before the PR (`retire(...)`, dropped in `bury` once the submission finishes). - Send only the standalone upload buffers to `retire_release`. - Charge those buffers by their allocated width. ```diff +/// What `buffers` hold, by their own sizes (a staging allocation can be longer than the +/// bytes copied from it): the charge [`retire_release`] counts against `REAPER_BYTE_BUDGET`. +fn buffers_bytes(buffers: &[ID3D12Resource]) -> usize { + buffers.iter().fold(0usize, |acc, b| { + // SAFETY: a live resource. + let width = unsafe { b.GetDesc() }.Width; + acc.saturating_add(usize::try_from(width).unwrap_or(usize::MAX)) + }) +} ``` In the unified copy path: ```diff - let mut retired_bytes: usize = pieces - .iter() - .fold(0usize, |acc, c| acc.saturating_add(c.len as usize)); ... - retired_bytes = retired_bytes.saturating_add(send.len as usize); ... - retired_bytes = retired_bytes.saturating_add(q.len as usize); ... - if !pieces.is_empty() || !retired_up.is_empty() || !retired_shadows.is_empty() { - retire_release(retired_bytes, (pieces, retired_up, retired_shadows)); + if !pieces.is_empty() || !retired_shadows.is_empty() { + retire((pieces, retired_shadows)); + } + if !retired_up.is_empty() { + retire_release(buffers_bytes(&retired_up), retired_up); } ``` The readback path gets the same change: drop `retired_bytes` and call `retire_release(buffers_bytes(&retired_up), retired_up)`. In-game A/B on 1.1.2 with the same settings: the merged code gave noticeably more hiccups than the same build with this fix applied. The same review found no other problems: - The heap-table cache is invalidated on `set_heaps`. - No lost `RECHECK` handoff. - The strides shadow is race-free. - The coalesced copies with overlapping runs are correctly ordered by the global `COPY_DEST → COPY_DEST` barrier.
Author
Owner

@⁠Heliumrich on GitHub · 2026-12-05 21:57 UTC · original

Thanks, finally someone using Tracy and other profiling tools that give REAL numbers instead of just asking claude to "make no mistakes"

Tracy, RenderDoc, these will give informations on each function and renderpass cost and help way more than just looking at FPS in one spot between PRs

BTW both of these have MCP servers you can get, though Claude seems to be able to decode Tracy frame captures himself, but may be less efficient and use more tokens

**@⁠Heliumrich** on GitHub · 2026-12-05 21:57 UTC · [original](https://github.com/gamingwithhomie/larp/pull/185#issuecomment-7446176442) Thanks, finally someone using Tracy and other profiling tools that give REAL numbers instead of just asking claude to "make no mistakes" Tracy, RenderDoc, these will give informations on each function and renderpass cost and help way more than just looking at FPS in one spot between PRs BTW both of these have MCP servers you can get, though Claude seems to be able to decode Tracy frame captures himself, but may be less efficient and use more tokens
github-bot referenced this pull request from a commit 2026-12-05 22:43:29 +00:00
github manually merged commit 8a3467585c into gh-pr/185/base 2026-12-05 22:43:33 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.