[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JZVZD4SFDX0YT9FCS2PNFE":3,"skill-same:01M6JZVZD4SFDX0YT9FCS2PNFE":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6JZVZD4SFDX0YT9FCS2PNFE","audit-performance",null,"Audit GPU\u002FCPU performance — hot paths, allocations, draw batching, GPU memory pressure, SSBO sizing, telemetry","matiaszanolli\u002FByroRedux","matiaszanolli","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2379093?v=4","01M6JZJDYMPY01793W4XK157YG","Matias Zanolli","01M6JZJE2KE2BXSDPAYPQC6BSH",40,"MIT","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.claude\u002Fcommands\u002Faudit-performance\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"performance","audit","audit performance","deep","memory","telemetry","batching","dimensions","gpu","focus","CPU","paths","draw","depth","2026-11-10 10:12:30",false,"---\ndescription: \"Audit GPU\u002FCPU performance — hot paths, allocations, draw batching, GPU memory pressure, SSBO sizing, telemetry\"\nargument-hint: \"--focus \u003Cdimensions> --depth shallow|deep\"\n---\n\n# Performance Audit\n\nRead `.claude\u002Fcommands\u002F_audit-common.md` and `.claude\u002Fcommands\u002F_audit-severity.md` for shared protocol (layout, methodology, dedup, context rules, path-reference convention, finding format, hot-path hashing rule).\n\nAudit ByroRedux for CPU hot-path inefficiency, per-frame allocation churn, draw\u002Finstancing waste, GPU memory pressure + eviction thrash, SSBO sizing\u002Fupload cost, pass cost and streaming stalls. **Do not re-derive memory ceilings** — `docs\u002Fengine\u002Fmemory-budget.md` owns every size, threshold, reserve floor and VRAM budget; cite it.\n\n**Architecture**: Orchestrator. Each dimension runs as a Task agent (max 3 concurrent), with the model `_audit-common.md` § Delta-first scoping step 5 sets.\n\nHardware target: **RTX 4070 Ti (12 GB) + Ryzen 7950X (16c\u002F32t)**; RT VRAM minimum 6 GB. A CPU bottleneck here is a **bug**, not a tuning gap — dimensions are ordered by per-frame impact.\n\n## Parameters\n\n- `--focus \u003Cdimensions>`: comma-separated numbers (e.g. `1,3,5`). Default all 8. `--depth shallow|deep`: pattern scan vs traced + quantified. Default `deep`.\n\n## Extra Per-Finding Fields\n\n- **Dimension**: CPU Hot Paths | Draw & Instancing | GPU Memory Pressure | SSBO Sizing & Upload | GPU Pipeline | Skinning & BLAS | Streaming & Cells | NIF Parse | Telemetry & Origin Cost\n\n## Bench discipline (never hard-code numbers)\n\n- ROADMAP.md carries the **live Bench-of-record** (`scripts\u002Ffsr-bench-matrix.sh 3 300`, `renderer-stepped`, five scenes × TAA\u002FFSR presets, with a same-machine control of the outgoing record): read it, its open regressions (**R6a-regress-22**: the \"FO4 frame time doubled inside `4c9a5b36..99933f87b`\" reading was `b9e961eeb` moving the bench camera's spawn origin into the room, not code — #5128's pinned-pose control; the known-open residual is ≈ +0.7 ms \u002F fence +2.6 ms from the old pose, the top-of-frame all-slots fence wait tracked as #5365. Before comparing two bench records, check their `camera_pos` columns match; and **R6a-regress-23**: the live record is `d9a201c71` (2026-10-22, controlled against `a3a7a43b0`), and HEAD reads 1–9% slower than that control on every scene — Cornell, the content-identical one, +0.99 ms TAA; the SVGF bracket is +0.22–0.35 ms (the `gpu_shadow_filter` bracket inside it) and *gpu_main* +0.5–1.2 ms on Cornell \u002F Whiterun \u002F MedTek is unattributed) and the compat table; report **observed-vs-ROADMAP deltas** — a regression is a delta. Scenes: Cornell (redistributable control), Prospector (FNV), WhiterunBanneredMare (Skyrim), MedTekResearch01 + Dugout Inn (FO4).\n- Run shape: `--bench-frames N [--bench-hold] [--bench-mode renderer-static|renderer-stepped|system-live]`. Compare only within one mode (baseline TSVs in `.claude\u002Faudit-baselines\u002Fruntime\u002F` are renderer-static; the record is renderer-stepped); the mode owns delta-time, so never set `BYROREDUX_FIXED_DT`. Point `BYROREDUX_SETTINGS_PATH` at a fresh file and pass `--upscaler` explicitly, or a persisted `render.upscaler` changes the run (#4947); the `bench:` line reports `upscaler=`\u002F`render_extent=`\u002F`output_extent=`. Measure the noise floor first (`scripts\u002Fbench-variability-envelope.sh`); a delta inside it is not a finding. `--bench-capture-every N --bench-capture-dir DIR` (`bench_capture.rs`, `f7194719f`) is a capture mode: every screenshot stalls its frame, so take timings from a separate run without it.\n- **Harness byte-stability.** `scripts\u002Ffsr-bench-matrix.sh` + `scripts\u002Ffsr_bench_report.py` must stay byte-stable across commits or cross-commit comparisons mean nothing. Never assert it from memory (#4024): run `scripts\u002Fcheck-bench-harness-provenance.sh [--strict] [\u003Crecord-commit>]` (full history required) and quote the verdict; a *DIVERGED* verdict → re-bench both sides. An edit to either file that was not itself re-benched is a finding (against the live `d9a201c71` record the verdict reads DIVERGED with one edit, `e7d7af3c9` (M-LIGHT Phase 1b), which moved the scene table (`scene_dir`, `scene_entity_floor`, `run_scene_args`) verbatim into the sourced `scripts\u002Fbench-scenes.sh` — recorded as measurement-neutral by inspection (`0be5f6c83`, #6598: no run arguments, gates or arithmetic changed), so re-run the check before trusting a cross-commit delta rather than assuming byte-stability; `fc83608d3`'s `gpu_shadow_filter` and `994620123`'s `gpu_cloud_shadow` column appends predate it; the `a3a7a43b0` record reads DIVERGED with three edits, those two (#5959; #6316, its disposition landed with #6336, `a74c2bdf0`) plus `e7d7af3c9`, each carrying a recorded disposition; the older `a37fcba3c` record reads DIVERGED with five, each carrying a recorded disposition the script prints — #5451, fixed in `4b9472909`: the Prospector `Update.bsa` mount was shown measurement-neutral by a same-session interleaved control, the `camera_pos` and `gpu_shadow_filter` columns are append-only. Without `--strict` a DIVERGED verdict still exits 0; dispositions annotate only, the verdict, exit code and `--strict` are unchanged).\n- **Adaptive ray budget**: the RT quality tier follows GPU time (`AdaptiveRayBudget`), so a lighting-cost delta is uninterpretable without it — pin with `--rt-test-ray-quality-tier N` for A\u002FB, else report the tier.\n- **Hooks** (`byro-dbg` after `--bench-hold`; no `bench-stats` command exists): the once-a-second `gpu_ms:` \u002F `cpu_ms:` lines, `MetricsSnapshot` (over the wire `MetricsPayload` carries `gpu_pass_ms`, `cpu_pass_ms` and `top_systems_ms`, so `byro-dbg` can name the slow system and the slow CPU bucket without log scraping; #6278, `05d94dd61`), console `ctx.scratch`, `skin.coverage`, `rt.integrity`, `depth.stats`. Cite a timer, not a guess.\n\n## Regression-guard posture\n\nEach dimension lists landed fixes as `Guard:` lines — **verify the symbol\u002Ftest still exists and holds; never re-propose a landed fix** (noise); an eroded guard is a real finding, reported apart from new issues. Std `HashMap`\u002F`HashSet` on a per-frame per-entity keyspace is a fresh regression (the Fx conversion is finished). Falsified by measurement, re-propose only with new numbers: decorate-sort-undecorate for the raster sort (#4194, `manual_bench_draw_sort_decorate_sort_undecorate`, `render\u002Fdraw_sort_key_tests.rs`).\n\n**Alloc coverage**: NIF parse\u002Fimport allocation is dhat-testable (`dhat-heap` feature; bounds in `crates\u002Fnif\u002Ftests\u002Fheap_allocation_bounds*.rs`) — propose a bound, don't estimate. Per-frame render\u002FECS paths have NO dhat coverage: flag \"no quantitative guard exists for this site\".\n\n## Per-frame pass inventory (verify against code; a pass missing here is itself a finding)\n\nCommand-buffer order (`draw_frame` phases, `vulkan\u002Fcontext\u002F`). Timer = `GpuTimerSnapshot` field (31 brackets: 26 named + 5 main-render sub-phases); a new named pass is a `TimerPass` variant + const row in `gpu_timers.rs` (#6358, `0288f468d`; `cmd_start` \u002F `cmd_end` take the row, no per-pass methods, `every_named_bracket_has_exactly_one_pass_row`) and needs a bracket, a row here and a `memory-budget.md` row. Nested brackets (`main_opaque_ms` \u002F `main_blended_ms` \u002F `main_water_ms` \u002F `groundcover_model_draw_ms` \u002F `groundcover_blade_draw_ms` inside `main_render_ms`; `volumetrics_inject_ms` \u002F `volumetrics_integrate_ms` \u002F `volumetrics_local_sim_ms` inside `volumetrics_ms`, #6533; `shadow_filter_ms` inside `svgf_ms`, #5959; `cloud_shadow_ms` inside `sky_cube_ms`, #6316) are never summed with their parent.\n\n| Pass | Where | Runs when | Scales with | Timer |\n|---|---|---|---|---|\n| Static-BLAS recovery | `restore_missing_static_blas_for_draws` via `step_static_blas_restore` (`app_step.rs`), *between* frames | missing rigid BLAS; deadline-bounded chunks; skipped if the set cannot fit the budget | missing meshes (~0.2–0.5 ms each, blocking) | CPU only |\n| Dynamic-RGBA copies, reservoir clear | `begin_frame_recording` (`texture_registry\u002Fdynamic_rgba.rs`, `ReservoirBuffers::begin_frame`) | pending same-size RGBA updates; every frame | changed textures; pixels | none |\n| Instance\u002Fmaterial\u002Flight upload | `build_and_upload_instances.rs`, `scene_buffer\u002Fupload.rs` | every frame; hash dirty gates | live draws, unique materials | `ssbo_build`, `parameter_upload` (CPU) |\n| Skin palette | `skin_palette.comp` via `plan_palette_dispatch` (`dispatch_skin_and_cluster.rs`) | dirty slot runs only | changed bone slots | `skin_palette_ms` |\n| Skin vertices | `skin_vertices.comp` per entity | pose-hash dirty gate | dirty entities × verts | `skin_dispatch_ms` |\n| Skinned BLAS refit | `record_skinned_blas_refit` | dirty gate; rebuild after 600 + jitter refits | dirty entities; shared scratch serializes | `skin_blas_refit_ms` |\n| TLAS build\u002Frefit | `build_tlas` | every frame; UPDATE vs BUILD by address sequence | instances | `tlas_build_ms` |\n| Cluster cull | `cluster_cull.comp` | every frame | lights × clusters | `cluster_cull_ms` |\n| Ground-cover scatter | `groundcover_interaction.comp` + `groundcover_scatter.comp` (TLAS ray query per candidate); dev bench: `groundcover_bench_ms` | chunks resident (exterior) | chunks × candidate budget | `groundcover_scatter_ms` |\n| Sky-cube bake | `SkyCubePipeline::record_bake`: `sky_cube.comp` (6×128², cloud march) + prefilter mips + SH, then `record_cloud_shadow`: the cloud-shadow map (`cloud_shadow.comp`, `CLOUD_SHADOW_MAP_SIZE`² × `CLOUD_SHADOW_STEPS` march, `vulkan\u002Fsky_cube\u002Fcloud_shadow.rs`; its camera-column readback is read in `begin_frame_recording` after the slot's fence, never stalling) | every frame the pipeline exists (interiors too) | fixed | `sky_cube_ms` (inclusive), `cloud_shadow_ms` nested (#6316) |\n| Ground-cover model tier | `groundcover_models.comp` via `record_groundcover_models` (PLACE\u002FLAYOUT\u002FEMIT into the instance tail) | exterior, chunks resident | candidates | `groundcover_models_ms` |\n| Main geometry pass | `triangle.vert\u002Ffrag` + early-depth `triangle_early.frag.spv` for opaque draws that allow it (RT shadows\u002Freflection\u002FGI\u002Fglass), water, ground-cover models + blades | every frame | pixels × lights × rays (adaptive tier) | `main_render_ms` (+ 5 sub-phases) |\n| Depth-history copy | `copy_depth_to_history` | only if `scene_has_effect_soft_material` (cached, `SceneEffectSoftCache`) | pixels | `depth_history_copy_ms` |\n| SVGF + shadow filter | temporal + 3 à-trous dispatches; then the direct-shadow filter (`shadow_filter.comp`, 2 à-trous iterations over the ReSTIR shadow ratio, `vulkan\u002Fshadow_filter.rs`) | every frame; the filter also runs when SVGF is absent or latched off | pixels | `svgf_ms` (inclusive of the filter) + nested `shadow_filter_ms`, which also brackets the SVGF-absent fallback (`record_shadow_filter`, `post_passes.rs`) |\n| Caustic splat | `caustic_splat.comp` | caustic sources present | refractive pixels | `caustic_splat_ms` |\n| Volumetrics | inject + integrate, combustion-moment readback (one frame behind); the world-space combustion local grid (`volumetrics\u002Flocal_grid.rs`, `volumetrics_local_sim.comp` over up to `LOCAL_GRID_MAX_BOXES` cubic-cell boxes within `LOCAL_GRID_REACH_METERS` of the camera, #6533; its state hash is read back a frame behind); host `fog_cluster` prep | `requires_dispatch` (fog \u002F emitters \u002F combustion live) **and** TLAS, cluster-light and boundary-geometry inputs present (`post_passes.rs`); `VOLUMETRIC_OUTPUT_CONSUMED` is permanently `true` | froxels (resolution-derived) × rays per froxel (`fogRayQualityTier`); local sim: live boxes × `LOCAL_GRID_DIM`³ cells (no live box ⇒ inactive, `volumetrics_local_sim_ms == 0`) | `volumetrics_ms` (+ inject\u002Fintegrate\u002Flocal sim) |\n| SSAO, composite | `ssao.comp`; `composite.frag` (linear HDR; when submerged, also a 24-step per-pixel underwater god-ray march, `underwaterGodRays`, gated on the submersion extinction and reading `view_proj` from the composite UBO, not a per-pixel `inverse()`, #6486 `fa9ada406` (issue stays open for the unmeasured 24-step x 6-tap depth-fetch half: no submerged `composite_ms` measurement exists); when local-grid boxes are live, also the local fire ray-march, built as two pipelines on the `LOCAL_FIRE_SUNLIT` specialization constant so a sun-less frame binds the variant with the sun-lit species-phase path folded out, `15a4ecf10` — 96 vs 126 registers per thread, `docs\u002Fengine\u002Ffire-volumetrics-plan.md`) | every frame; the god-ray march only underwater, the fire march only with live boxes | render pixels | `ssao_ms`, `composite_ms` (the god-ray march is unmeasured — quantify with `composite_ms` below the surface before filing; the fire march is costed per scene in the plan doc: composite 0.36–0.89 ms on its lab scenes, interleaved medians) |\n| Bloom | down\u002Fup chain + `bloom_apply.comp` | skipped under raw debug views | pixels | `bloom_ms` |\n| TAA | `taa.comp` | only `--upscaler taa` | pixels | `taa_ms` |\n| Exposure meter | `exposure_meter.comp` via `record_exposure_meter_pass` (one workgroup; fixed mode writes a constant, auto mode does 4,096 scattered fetches); skipped on raw-debug views | every frame | fixed | `exposure_meter_ms` |\n| Upscale, presentation | FSR 3.1 or native blit; tone-map (ACES \u002F AgX) × exposure texel (+ UI quad) | every frame | output pixels (presentation does not shrink with FSR presets) | `upscale_ms`, `presentation_ms` |\n\nOutside the loop: lazy blend-pipeline variant compilation (seconds each on a cold driver cache; CPU span `pipeline_compile`), the post-present scratch shrink (`shrink_frame_scratch.rs`, CPU span `post_present`) and the streaming\u002Fteardown paths (Dim 7).\n\n## Phase 1: Setup\n\n1. Parse `$ARGUMENTS`. `mkdir -p \u002Ftmp\u002Faudit\u002Fperformance`.\n2. Dedup baseline: `gh issue list --repo matiaszanolli\u002FByroRedux --limit 200 --json number,title,state,labels > \u002Ftmp\u002Faudit\u002Fperformance\u002Fissues.json`.\n3. Read ROADMAP.md Bench-of-record + compat table, and the newest `docs\u002Faudits\u002FAUDIT_PERFORMANCE_*.md`.\n4. **Delta scoping**: run each dimension's `First step:` with `--since=\u003Clast report date>`; untouched Paths get a guard check + skim.\n\n## Phase 2: Dimensions\n\n### Dimension 1: CPU per-frame allocations & hot paths\nThe highest-yield surface: a 16-core Ryzen must never be the bottleneck.\n**Paths**: `byroredux\u002Fsrc\u002Fsystems\u002F{animation,bounds,billboard,particle,cinematic,locomotion,sandbox,wander,travel,follow,escort,guard,patrol,walk_anim,combat_ai,restoration,eat_sleep,forcegreet,story_events,npc_dialogue,dialogue_voice,archetype_idle,trap_hits}.rs`, `byroredux\u002Fsrc\u002Fnpc_spawn\u002Fai_package.rs` (`ambient_ai_package_system`), `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fsystems.rs` (`make_transform_propagation_system`), `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fpacked.rs`, `byroredux\u002Fsrc\u002Frender\u002F{mod,particles,lights,static_meshes,skinned}.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fskin_slot_pool.rs`, `crates\u002Fcore\u002Fsrc\u002Fform_id.rs` (`FormIdPool::entity_with_local`), `byroredux\u002Fsrc\u002Fsystems\u002Fpass_clock.rs`, `byroredux\u002Fsrc\u002Ftexture_streamer.rs` (`update_wanted`, M39).\n**First step**: `git log --since=… --format='%h %s' -- byroredux\u002Fsrc\u002Fsystems byroredux\u002Fsrc\u002Frender crates\u002Fcore\u002Fsrc\u002Fecs crates\u002Fcore\u002Fsrc\u002Fform_id.rs`; scheduler timings in `MetricsSnapshot` name the slow system. Measured (#6718, `db8cfde6a`, record `.claude\u002Fissues\u002F6718\u002FPROFILE.md`, `BYRO_PROFILE=1`, release, 900 frames): all systems together cost 1.5 \u002F 4.8 \u002F 3.3 ms a frame on FNV Prospector Saloon \u002F Skyrim Whiterun \u002F FO4 Shamrock Taphouse (4–12 % of a 34–40 ms Xvfb wall, which is `submit`-dominated and unrepresentative); the only system over 0.5 ms is `physics_sync_system` (Whiterun mean 2.2 ms, max 9.7), already parallel-registered and alone in its Physics stage, so parallel promotion of the others buys nothing. Do not re-file \"promote more systems to parallel\" without a scene showing `systems_ms` above ~8 ms on a real display or a CPU-bound frame; the record notes `interaction_system` and the animation \u002F dialogue \u002F trigger systems were judged on cost, not `access_report()`.\n**Method**: per-frame `Vec`\u002F`HashMap`\u002F`String` allocation that should be a persistent scratch; `collect()` where `clear()+extend` works; `mem::take` capacity churn (0→N regrowth); per-entity allocation or component deep-clone inside a per-frame loop; whole-world scans with no change-detection key; sparse-set probes repeated per entity. Ambient locomotion\u002FAI\u002Fcinematic systems run every frame on every NPC: no component clones (NavPath and `ScenePlayer` clones were real findings), persistent scratch not fresh `Vec`s. Regression guards, fixed (do not re-file): `story_change_location_system` early-outs on an empty\u002Fabsent `SmTree` and hashes the typed LCTN\u002Fgrid fields without `format!` (#5447, `7bba019e1`), and derives the cell kind, LCTN and CLOC key once per cell context through `StoryLocationMemo` (an allocation-free Fx key over the contexts it reads; a per-frame `resolve_current_lctn`, which lowercases an interior's editor id into a fresh `String`, is the regression — #6335, `80471eb78`, `the_location_is_derived_once_per_context_not_per_frame`); `archetype_idle_system` skips its walk while the membership generations of `AnimationTarget` \u002F `AnimationPlayer` \u002F `ArchetypeIdle`, the `Dead` count and the player entity are unchanged (`PassKey`, actor list a persistent scratch on `ArchetypeIdleSeen`; the pass's own inserts move the key once, so it repeats once and settles — #6334, `86ac93e0c`, `a_settled_pass_skips_the_walk_until_an_actor_appears`); the trap -> scripted-owner map in `trap_hits.rs` is rebuilt only when `owner_key` (the structural generations of its six storages) moves and its per-tick body\u002Fcontact sets are Fx (#6312, `9290248d6`, `the_cached_owner_map_follows_script_and_parent_changes`) — a per-tick rebuild or a SipHash set there is the regression; `ambient_ai_package_system` reads `BYRO_M42_DEBUG` once through a `OnceLock` and builds its due list without a per-frame `Vec` (#5448, `9cc748ef2`); `make_eat_sleep_system` keeps a persistent scratch — a per-actor `SEAT_RETRY_SECS` retry clock, one shared sit\u002Fsleep marker gather per frame (#5449, `35a009431`), an `ANCHOR_RETRY_SECS` clock for an unresolved In-Cell anchor and one query pass per storage for the walk leg (#5527, `959b76f55`), and its actor list and retry-map membership set (`EatSleepScratch.actors` \u002F `live`) are reused with seated sleepers skipped at the gather and the retry maps `FxHashMap`s pruned against that set, not three O(retry × actors) `retain(any())` sweeps (#5707, `a08156579`, `seated_actor_is_not_gathered_and_its_clocks_are_pruned`). A per-frame whole-world `Furniture` walk, a per-frame rebuilt actor `Vec` or a per-actor `world.get` round-trip in these systems is the regression. `find_package_system` memoises each candidate row's item kind per base for the current `LoadedCellIndex` (Fx map), staggers each actor's first search across the period by entity id, keeps its behaviour snapshot as persistent scratch, recomputes the arrival class when the target changes and about once a second after, and prunes `search_clock` \u002F `stuck` \u002F the arrival cache to the live Find actors (#6339, `f8c3c5ae3`, `the_item_kind_memo_classifies_each_base_once_per_index`, `first_searches_are_staggered_across_the_period`, `the_arrival_class_is_cached_for_the_walk`); `jail_bed_system` reads `ActivateEvent` first and tests only the player's activation targets with `is_bed`, not a per-frame `Vec` of every bed (#6340, `199714b75`, `is_bed_agrees_with_the_bulk_bed_gather`). Global-FormID resolution is a hash lookup: `resolve_entity_by_global_form_id` answers from `FormIdPool::entity_with_local`, a lazily rebuilt local→entity index keyed on `FormIdComponent`'s structural generation plus the pool length, so Flee \u002F UseWeapon \u002F `find_package` \u002F `travel` \u002F `follow` no longer scan every `FormIdComponent` per actor per frame (4 µs at 2 k entities, 65–131 µs at 30–60 k; a miss paid the full scan each frame) — a per-call `iter().find` over `FormIdComponent` is the regression (#6338, `ab3a604bf`, `entity_with_local_reuses_its_build_until_the_membership_moves`, `the_index_follows_spawns_and_despawns`, `a_duplicate_id_resolves_to_the_first_entity`). The physics water pass keeps its per-wet-body latches (`rest_depth`, `water_force_targets`, the settled-collider set) on the Fx hasher (#5709, `5f01d1a7f`, `water_scan_latches_are_not_siphash` in `crates\u002Fphysics\u002Fsrc\u002Fwater.rs`) — a std `HashMap`\u002F`HashSet` there is the regression. The Papyrus VM's serial main-thread cost is bounded per frame: `VmFrameBudget` (`DEFAULT_FRAME_BUDGET` 10 000 statements, renewed by `event_cleanup_system`; `fragment\u002Fbudget.rs`) defers un-started runs (a hit it cannot start is deferred onto the continuation queue, not dropped — #5987, `746214f29`) and yields a run in progress, and `ReferenceScriptIndex` (`fragment\u002Freference.rs`) answers FormID → entity in one hash lookup instead of a per-frame rebuild over every attached script (#5763, `195e3b4ef`) — an unbudgeted exclusive interpreter system or a per-call index rebuild is the regression. `collect_deliveries` returns before walking the attached-script entities when the frame raised no marker or watched change (`11685934d`, part of #5764: idle `ref_events` flat at ~1.3 µs from 0 to 20 000 references, `docs\u002Faudits\u002FBENCH_vm-cost_after-5764.txt`), so neither `reference_script_event_system` nor the `OnHit` pass #5991 (`e4810c125`) split into `reference_script_hit_system` walks on a quiet frame — an idle-frame walk, or a third pass over the entities on an event frame, is the regression. Known-open under #5764: deferral costs ~0.8 µs a delivery (needs a compact saved record) and a value-called function or array-holding frame cannot suspend; quantify against it before filing.\n**Guard**: `drain_dirty_into_preserves_storage_capacity` (`packed.rs`; `take_dirty` zero-capacities — its use in a per-frame system is the regression); `make_animation_system` persistent scratches (`entities_scratch`, `playback_scratch`); `make_billboard_system` skips its loop when `last_cam` is unchanged (re-arming `GlobalTransform` `TRACK_CHANGES` every frame defeats incremental bounds); `make_transform_propagation_system` change-detection fast path (skips when roots, `Parent`\u002F`Children` generations and `Transform` dirty are unchanged); `build_debug_ui_snapshot` clone gated on debug UI visible; `SkinSlotPool` `free_list` contraction so `max_used_slot()` shrinks after a high-NPC unload; `bone_world` not `.clear()`ed per frame (identity-fills new tail slots only); `emit_particles` takes no dead `GlobalTransform` query; `scene_has_effect_soft_material` served from `SceneEffectSoftCache` while storages are structurally unchanged; `compute_wanted` (`texture_streamer.rs`, runs every frame once `render.texture_streaming` is on, off by default) resolves a draw's texture-slot widths through a dense handle-indexed table and Fx per-frame maps — it was 1.50 ms on FO4 MedTekResearch01 (8 000 draws × 8 slots of SipHash lookups) and is 0.52 ms there, 0.14 ms on FNV Prospector (`dd2cd84e9`, `docs\u002Fengine\u002Ftexture-streaming.md` §12.4): a std-hasher lookup per draw-slot is the regression; the periodic gameplay systems share one `PassClock::due` (non-finite `dt` adds nothing, `a_non_finite_or_negative_dt_adds_nothing`) and one `living_actors` roster instead of per-system accumulators and per-system `CombatDisposition` sweeps (#6579, `00d53e659`, `living_actors_are_the_stamped_actors_that_are_not_dead`).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_1.md`\n\n### Dimension 2: Draw-call & instancing efficiency\n**Paths**: `byroredux\u002Fsrc\u002Frender\u002F{mod,static_meshes,visibility}.rs` (`build_render_data`, `draw_sort_key`, `sort_draw_commands`, `raster_visible`), `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002F{build_and_upload_instances,draw,frame_params}.rs` (batching; `group_state` \u002F `should_use_indirect_draws` live in `frame_params.rs` since #5087).\n**First step**: `git log --since=… --format='%h %s' -- byroredux\u002Fsrc\u002Frender crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002Fdraw.rs`; `cargo test -p byroredux draw_sort_key`.\n**Guard**: `render\u002Fdraw_sort_key_tests.rs`, `render\u002Fsort_key_tests.rs`.\n**Checklist**:\n- `draw_sort_key` is a 12-tuple `(u8×4, u32×8)`: slot 0 `rt_only` (off-frustum RT occluders last, so the `MAX_INSTANCES` cap drops them before raster), 1 composition phase, 2 blend class, 3 `no_sorter` (true alpha-over only; opaque\u002Fadditive write 0 — #4191), then state\u002Fmesh\u002Fdepth. The opaque depth slot is `opaque_depth_bucket` (raw depth = camera-driven sort churn that defeats the SSBO dirty-gate hashes, #3663). Sorted alpha-over is depth-primary on purpose: its higher `bench_draws_*` counts are accepted cost. Every `PipelineKey` axis needs a sort slot (`blend_pipeline_slot`, `pack_depth_state`).\n- Verify the sort minimizes pipeline\u002Fdescriptor rebinds; draw count vs entity count (compat table reports both); same-mesh instances collapse to one indirect draw; no per-draw state churn (`cmd_set_depth_bias`). R6a-regress-22's apparent batch-merge collapse (Dugout `1935\u002F326b\u002F12c` → `2367\u002F659b\u002F43c`) was a camera move (#5128): pinned to one pose, `99933f87b` merges more (330b → 168b), so a batching finding must compare same-pose captures.\n- `DRAW_SORT_PARALLEL_THRESHOLD` = 3000 (`sort_draw_commands`; measured crossover 2750–3000; `manual_bench_draw_sort_serial_vs_parallel` asserts the two sorts agree before it times them, #6186, `353b12145`). Check it against the `bench_draws_raster_cmds` column of the baseline TSVs — `bench_draws_cmds` also counts RT-only occluders that never enter the sorter; a row with `bench_draws_batches > bench_draws_raster_cmds` cannot come from one capture.\n- Static-mesh loop probes `GlobalTransform` before the visibility\u002Fbounds siblings (#1377); `build_instance_map` reuses a caller scratch (#4193).\n- `needs_two_sided_blend_split` = `is_blend && two_sided && order_dependent_glass` (no `z_write` limb); structurally dormant for engine-classified glass (`collect_static_mesh_draws` clears `two_sided` for `MATERIAL_KIND_GLASS`), so split items cannot explain batch-count movement (#2691); a split on non-glass batches is the regression. The indirect group key carries split *eligibility* (`needs_two_sided_blend_split`), not the raw glass flag, so opaque glass runs merge (#2764, `opaque_glass_flag_does_not_split_groups`; #2165's `blended_glass_flag_still_splits_groups` still holds).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_2.md`\n\n### Dimension 3: GPU memory pressure & eviction thrash\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Facceleration\u002F{predicates,blas_static,constants}.rs`, `context\u002Fresources.rs`, `crates\u002Frenderer\u002Fsrc\u002Ftexture_registry\u002F`, `crates\u002Frenderer\u002Fsrc\u002Fmesh.rs`, `byroredux\u002Fsrc\u002Fstreaming_helpers.rs` (`exterior_pool_reserve`, `defer_geometry_rebuild`), `crates\u002Frenderer\u002Fsrc\u002Fmesh\u002Fpool_limits.rs`, `crates\u002Frenderer\u002Fsrc\u002Ftexture_registry\u002Fbudget.rs`, `byroredux\u002Fsrc\u002Fasset_provider\u002Fmaterial\u002F{provider,cdb,loose_mat}.rs`, `crates\u002Fsfmaterial\u002Fsrc\u002Findex.rs` (the Phase-2 `MaterialIndex`), `crates\u002Frenderer\u002Fsrc\u002Fdeferred_destroy.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Facceleration crates\u002Frenderer\u002Fsrc\u002Ftexture_registry crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002Fresources.rs`; `rt.integrity` shows BLAS residency, missing\u002Fevicted counts and pending-destroy backlog.\n**Guard**: `cargo test -p byroredux-renderer --lib acceleration` (admission\u002Feviction\u002Fresidency tests), `static_blas_recovery_covers_both_sources_and_protects_current_draws` (`resources.rs`), bin `static_blas_recovery_runs_between_frames_not_in_the_render_driver` (`app_step.rs`); `has_any_view_of_path_finds_every_key_variant` (#5053: the prefetch planner's residency probe rewrites one reused key buffer, never 16 `String`s per probe).\n**Checklist** (ceilings: memory-budget.md):\n- BLAS budget is **dynamic**: `blas_budget_for_heap` = (DEVICE_LOCAL heap − `screen_scaled_reservation_bytes`) \u002F 3, clamped to [`MIN_BLAS_BUDGET_BYTES` 256 MB, `MAX_BLAS_BUDGET_BYTES` 1 GB]; the reservation (`render_extent_bytes_per_pixel_x1024`) bills every render-extent pass — including ReSTIR's `RESERVOIR_BYTES_PER_PIXEL_PER_SLOT` and `SHADOW_FILTER_BYTES_PER_PIXEL` per frame in flight (#6035, `9762d9fa2`) — the upscaler's output-extent images and FSR SDK bytes and is re-derived on resize\u002Fupscaler switch; a new screen-sized allocation missing from it starts eviction late. Eviction runs pre- and mid-batch (`blas_over_budget` counts the batch's `pending_bytes`; `BATCH_EVICTION_CHECK_INTERVAL` = 64); admission is bounded on *resident* bytes (`admit_next_static_blas`, `blas_admission_exhausted`) — allocating past residency, or evicting against bytes still in `pending_destroy_blas`, is the regression. LRU must not rebuild-thrash during streaming.\n- Static-BLAS recovery stays a deadline-bounded between-frames step; `plan_static_blas_restore` must still skip a set that cannot fit the budget (else evict→rebuild never converges — the ~95 k-draw Starfield city). Current-frame BLAS ownership is `StaticBlasWorkingSet` (`acceleration\u002Fstatic_working_set.rs`: dense handle-indexed generation stamps, no per-frame hashing, #4804). Documented ceilings, quantify first: `--grid` false-evict burst, shared-scratch serialization (`\u002Faudit-renderer` Dim 1).\n- Scratch high-water: `shrink_blas_scratch_to_fit` (cell unload, resize), `shrink_tlas_to_fit` \u002F `shrink_tlas_scratch_to_fit` (`draw_frame` tail, on the *next* slot) respect the reserve floors (`MIN_TLAS_INSTANCE_RESERVE` = `WORKING_SET_FLOOR` = 8192).\n- `check_pool_growth()` warns\u002Ferrors on vertex\u002Findex pool caps per upload. The caps are 7 M vertices \u002F 28 M indices (`VERTEX_POOL_HARD_CAP` \u002F `INDEX_POOL_HARD_CAP`, `mesh\u002Fpool_limits.rs` since #6520 `cd78f9efe`; raised 4 M\u002F16 M → 5 M\u002F20 M → 7 M\u002F28 M by `3929a406c` and `bb97be77c`, ≈ 840 MB at the caps, `memory-budget.md` mesh-registry row — re-derive from the constants, never copy). Admission is **three-tier** (`GeometryAdmissionClass`, `ab9d46d18` → `22d6e1a80`): `Essential` (terrain, water, terrain LOD) gets the full cap and the global latch; `Actor` (the player and NPC bodies, `with_admission_class` in `scene\u002Fnif_loader.rs`) the cap less the ground reserve; `Prop` (placed statics, object \u002F tree \u002F placement LOD) the cap less ground + actor reserves. A refusal latches only its own tier (`prop_geometry_admission_open`, `actor_geometry_admission_open`, `scene_geometry_admission_open`), so a full pool refuses distant props before people and people before the ground; every latch reopens with the compaction a cell unload triggers. The reserve is sized for the streaming radius, not a flat percentage — `set_pool_reserve(exterior_pool_reserve(radius_unload))` runs in `assemble_exterior_streaming` (a fixed 5 % starved 178 terrain cells at FO4 radius 12; `the_exterior_pool_reserve_scales_with_the_radius`, `radius_4_still_leaves_props_what_they_were_measured_to_need`), and the 3 % ground \u002F 2 % actor defaults apply only before that call; `the_tiers_stop_in_priority_order_and_latch_separately` pins the order. A new upload site must pick its class — a prop-sized upload left `Essential` eats the ground's headroom, and a ground upload wrapped in `Prop` is refused first. The deferred geometry rebuild is bounded: `defer_geometry_rebuild` stops deferring after `GEOMETRY_REBUILD_MAX_DEFER` (15 s) of continuous dirt, or a radius-12 load masks ground and water for its whole duration (`the_geometry_rebuild_deferral_is_bounded`; `geometry_deferred_since` in `app_frame.rs`) — an unbounded deferral is the regression. Exact-content geometry sharing (`mesh\u002Fgeometry_sharing.rs`, fingerprint reused for batch dedup and registration, #4803) and the live-budget-gated chunked geometry rebuild (`geometry_rebuild_needs_idle`) keep pool growth O(unique geometry). A LOD ring whose uploads the full pool refuses reports *Starved* and stops reconciling (`scene_geometry_admission_rejections`, #6054, `a5958adf3`) — re-decoding and re-rejecting every idle frame is the regression. Since #6092 (`635330d08`) every ring checks its tier's admission query before an attempt (`prop_geometry_admission_open()` for object \u002F tree \u002F placement LOD, `scene_geometry_admission_open()` for terrain LOD; skipping the archive read and decode for a certain refusal), a refused quad is held back with no cache entry (never cached as a \"no asset\" miss) and retried the frame the pool reopens — the re-arm edge in `app_step.rs` waits on the stricter prop query, or props starving under the reserve while the essential tier is open would restart every frame (`every_lod_ring_gates_on_admission_and_never_caches_a_refusal`, `starvation_rearms_only_once_admission_reopens`, `lod_support.rs`); Starved closes the boundary as its own terminal state (`starve_lod`, `lod_starved` on the bench line, #6093). A multi-sub-mesh quad or cell the pool refuses part-way is taken back out with `MeshRegistry::abandon_scene_geometry_group` (truncates the pool tails, leaving no hole) rather than `drop_meshes`, whose stranded spans let the next geometry rebuild reopen admission and retry the same group every cycle (#6332, `021e1b824`, `an_abandoned_group_leaves_no_hole_and_admission_stays_closed`). Texture staging is bounded by a **byte budget** (`DEFAULT_STAGING_BUDGET_BYTES`), not a texture count. BGSM\u002FBGEM cache half-evicts (a full flush reintroduces the cold-restart herd). `NifImportRegistry` LRU (`BYRO_NIF_CACHE_MAX`, 2048): per-cell FO4 `_oc.nif` precombine entries are the preferred victims and the first shared-model eviction logs once (`lru_evicts_per_cell_precombine_entries_before_shared_models`); the FO4 peak's shared statics alone (~9.7 k) exceed the cap, so eviction is held off while a streaming batch is in flight: `step_streaming` runs `sync_nif_cache_eviction` (`app_step.rs`) after every step, `WorldStreamingState::cell_load_in_progress` raises `NifImportRegistry::set_eviction_deferred`, the registry may hold up to `DEFERRED_EVICTION_HEADROOM` (8) x the cap, and it trims back to the cap (releasing clip handles) when the batch settles, in one pass: `evict_over_cap` ranks victims once by a `(tier, tick)` key (precombine without a clip handle, then any handle-less entry, then animated; oldest first; a min scan for the single steady-state eviction, `select_nth_unstable` plus a sort for a bulk trim), not up to three O(N) sweeps per victim, which cost ~1 s at the FO4 working set (#6590, `ec5068b40`; a per-victim sweep in the trim is the regression) — the worker's \"already cached\" skip (request snapshot, dispatch-batch memo) no longer turns into a main-thread re-parse (#6114, `304f3b587`, `deferred_eviction_keeps_the_batch_resident_then_trims_to_the_cap`, `deferred_eviction_is_bounded_by_the_headroom`, `deferral_does_not_cap_an_unlimited_registry`); per-entry RAM at the deferred peak is unmeasured (`memory-budget.md`), so quantify with an FO4 boot before calling the 8x headroom wrong. A full-detail slice whose geometry uploads the pool refuses is counted (`full_detail_refusals=` on the bench line) but never retried (#6106, open — needs compaction before the crossing's loads). The Starfield CDB `MaterialIndex` builds on a named background thread started at `discover_starfield_cdbs`, single-flight per CDB (`CdbIndexSlot` = `Arc\u003COnceLock\u003C…>>`) and serialised process-wide so N CDBs never stack N peaks — a first `.mat` lookup that builds inline on the main thread is the regression, and so is a panicking build re-run per lookup (`contain_cdb_build_panic` memoises the failure inside the slot initializer, #5665, `988402d25`, `a_panicking_cdb_build_is_memoised_and_runs_once`) (#5291, fixed in `dd759b762`; re-measured 1.6 s \u002F 247 MB peak \u002F ~115 MB resident per CDB, `memory-budget.md` \"Material index\" row; #5277's per-object `effect_blend` `String` map is part of that footprint). Archive handles are shared process-wide (`Archive::open_shared` (`asset_provider\u002Farchive.rs`), validated by an `ArchiveStamp`: length + mtime, plus (dev, ino, ctime) on Unix so a same-length rewrite that restores the mtime reopens instead of serving another entry's bytes as `Ok`, #5663, `04036a6fb`, `open_shared_rereads_a_same_length_rewrite_that_restores_the_mtime`; the path-keyed Starfield CDB caches are process-lifetime and never re-stamped), so a provider rebuild at a door transition costs ~0.1 ms, not ~125 ms (#5288, `5402b2530`) — a loader re-parsing file tables is the regression (the #3637 shadow count is memoised per archive and ordered preceding pool, so a reused handle joining a *different* pool walks the tables once, #5664, `3ad6289c2`, `a_reused_handle_reports_its_shadow_count_for_the_pool_it_joins`). Dynamic-RGBA staging (`dynamic_rgba.rs`): retry *cadence* under a persistent host-visible failure is part of the #4889 degrade contract — #5275 scoped the warn to the episode and #5528 (`e588e5e67`) backs the arena growth off for `RETRY_INTERVAL_FRAMES` (120) after a failed attempt, unless the request shrinks (`growth_retries_back_off_during_a_failure_episode`, `growth_gate_sits_before_the_allocation`); a failing `vkAllocateMemory` every frame is the regression.\n- **Texture streaming (M39, `render.texture_streaming`, off by default until its open gates close — ROADMAP)**: textures upload floor-first (`residency.rs`: `floor_first_level`, mip-range uploads from a first level) and promote\u002Fdemote per the wanted-mip pass (`TextureStreamer::update_wanted` → `apply_wanted`, Dim 1); the pool is capped by `derive_budget` (`texture_registry\u002Fbudget.rs`: `BUDGET_FRACTION_PERMILLE` 800 × the live `VK_EXT_memory_budget` DEVICE_LOCAL capacity − a reserve (the process's non-texture device-local bytes in use plus the static BLAS's remaining headroom under its own budget), floored at `MIN_DERIVED_BUDGET_BYTES`; `render.texture_budget_mib` overrides) and re-derived twice a second, so it shares the heap with the BLAS budget above — a pool that stops reserving the BLAS headroom, or eviction that demotes just-promoted textures inside the hysteresis window before older ones, is the regression (`dd2cd84e9`); promotions are reads on a streamer pool bounded by `MAX_READS_IN_FLIGHT`, landed by `TextureStreamer::step` — a main-thread archive read for a promotion is the regression. A flush batch lands at most one residency change per handle (a promotion read in flight plus a budget demotion planned against the same state used to both land), and a refused install retires its new image through `pending_destroy` before any descriptor points at it (#6738, `6a4c661a8`); a truncated BC DDS is refused before the floor-first and residency slices instead of panicking (#6737, `b8d89bdcb`). Cost and residency table: `docs\u002Fengine\u002Ftexture-streaming.md` §12 (resident texture bytes off → on, FO4 MedTek 766 → 136 MiB; zero deficits\u002Fchurn at settle); the `tex-stream:` bench line (`tex_stream_bench_line`) and `tex.residency` are the telemetry — quantify before filing.\n- Deferred-destroy countdown = `MAX_FRAMES_IN_FLIGHT`; freeing earlier writes in-flight GPU memory (CRITICAL). Backlog counters must be read by `rt.integrity`.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_3.md`\n\n### Dimension 4: SSBO sizing & per-frame upload\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fscene_buffer\u002F{constants,upload,buffers}.rs`, `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fmaterial.rs`, `byroredux\u002Fsrc\u002Fmaterial_translate.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fcomponents\u002Fmaterial.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fscene_buffer crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fmaterial.rs`; `ctx.scratch` on a bench cell.\n**Guard**: `gpu_instance_is_160_bytes_std430_compatible`, `gpu_instance_does_not_re_expand_with_per_material_fields`; the dirty-gate tests `{instance,indirect,light,material}_hash_tests.rs`, `per_frame_light_upload_does_not_use_siphash` (`light_history.rs`); `bone_world_slot_needs_copy` tests (`upload.rs`); `hash_gpu_material_fields_covers_every_gpu_material_field`.\n**Checklist** (sizes: memory-budget.md — cite its current total; it moved when instance SSBOs became grow-on-demand):\n- Upload cost is **O(live data)**, never O(capacity): instance SSBOs start at `INITIAL_INSTANCE_CAPACITY` and double to `MAX_INSTANCES`; eager `MAX_INSTANCES` allocation or a full-capacity memcpy of a near-empty buffer is the waste. `MAX_MATERIALS` 16 384; `MAX_INDIRECT_DRAWS` = `MAX_INSTANCES`. `GpuInstance` carries per-draw data only (layout drift: `\u002Faudit-renderer` Dim 3).\n- **Content-hash dirty gates** skip copy + flush on unchanged lights (`hash_light_upload`, which must also cover the `LightHistory::remap` table), instances (`hash_instance_slice`, `hash_previous_model_slice`), materials and indirect draws — steady state should skip. A gate that never hits (unstable sort key or material bytes, per-frame jitter in a hashed field) or is not invalidated when buffers are replaced (grow, resize) is the finding. `hash_gpu_material_fields` is one `FxHasher::write` over `GpuMaterial::as_bytes` (#4201, ~0.17 ms at 7 k draws) — check no second build\u002Fhash per draw survives (#4442). Since #5767 (`24eb7dba8`) `fold_svgf_scene_inputs` re-hashes every interned material (`svgf_material_hash`: animated UV\u002Fcolour\u002Falpha\u002Femissive\u002Fshader lanes zeroed, #6247) once per frame into the SVGF history key, beside the upload gate's `hash_material_slice` — O(unique materials), unmeasured; quantify before filing, a per-draw hash there is the regression. The key holds only discrete inputs: the clock-driven sky\u002Ffog lanes are compared against last frame and reset history on a jump only (`svgf_continuous_inputs_jumped`; #6247, `68ecd0819`, `per_frame_animated_material_lanes_do_not_rekey_history`, `continuous_sky_and_fog_reset_history_on_a_jump_not_on_drift`) — a continuous or animated lane folded back into the key leaves a parked camera at the recovery alpha floor, a quality+perf regression. The sun reaches the key a second time as `lights[0]` (`weather_system` rewrites the cell directional every exterior frame): `fold_light_rig_into_scene_key` leaves the first directional's colour and direction lanes out of the exact fold and returns them to the same jump comparison, while type, position, params, every further directional and every point\u002Fspot light stay exact (#6344, `8828dc6a5`, `a_drifting_cell_sun_does_not_rekey_the_light_rig_but_a_jump_or_other_light_does`) — a bit-exact fold of the drifting sun is the regression; the ReSTIR rig key keys on the sun direction by design (#5369).\n- Material dedup: N placements of one material → one `GpuMaterial`; report the ratio per cell (`ctx.scratch`); `MaterialTable::intern` O(1) amortized; upload O(unique) (`min(table.len(), MAX_MATERIALS)`, not `interned_count()`).\n- PBR is resolved ONCE at import (`Material::resolve_pbr`); the draw loop must not call `classify_pbr_keyword` (`\u002Faudit-nifal` Dim 1).\n- The moved-surface ID list (`RESTIR_MAX_MOVED_SURFACES` 64, one ID per moving draw entity — every animated skinned part counts, so ~10 animated NPCs overflow it) warns once per overflow episode and re-arms under the cap (`overflow_warns_once_per_episode_and_rearms_under_the_cap`; submitted\u002Fkept counts on `rt.integrity`, #6493 `e778320f8`, issue open for the cap itself) — a per-frame overflow warn is the regression; sizing the cap is the open question. The list is a persistent `ScratchBuffers` scratch (taken, cleared and restored inside `build_and_upload_instances`, a `ctx.scratch` row, shrunk at frame end), pushed once per moved draw and sorted + deduplicated once by `finish_moved_surface_ids` before upload (also makes the over-cap truncation keep the same IDs every frame), with the uncapped unique count still reaching `upload_moved_surface_ids` for the overflow counts (#6485, `59e376a90`) — a fresh `Vec` per build or a `contains`-then-`push` per draw (O(movers²)) is the regression.\n- Bone-world upload is O(dirty slots): `upload_bone_worlds` takes `dirty_slot_offsets` from `pose_dirty` and stages `vk::BufferCopy` only for changed slots (`bone_world_slot_states`); a full-range copy is the regression.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_4.md`\n\n### Dimension 5: GPU pipeline & pass efficiency\n**Paths**: the inventory table — `context\u002F{draw,geometry_pass,post_passes,dispatch_skin_and_cluster}.rs`, `crates\u002Frenderer\u002Fshaders\u002F`, `vulkan\u002F{volumetrics,bloom,svgf,shadow_filter,taa,composite,ssao,sky_cube,groundcover,groundcover_models,exposure_meter}.rs`, `vulkan\u002Fsky_cube\u002Fcloud_shadow.rs`; `docs\u002Faudits\u002FPERFORMANCE_FIX_STATUS_2026-09-26.md` records which perf issues are implemented-but-unmeasured.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fshaders crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext`; read `gpu_ms:` on a control bench and diff against ROADMAP.\n**Checklist**:\n- Every pass is O(pixels) \u002F O(froxels) \u002F fixed, never O(meshes). Froxels are resolution-derived (`froxel_extent`; `VolumetricsConfig::default` in `upscaling.rs`), and per-froxel ray count is gated (sun term on `sunTermLive`, local rays skipped at zero scattering, rim probes above tier 0, known-empty transport slots skip history work); `filter_fog_volumes_for_grid` culls distant emitters before dispatch. Combustion light-moment atomics target host-visible memory over PCIe, but #5950 (closed not-planned, code unchanged) measured that traffic as free: subgroup-aggregating the global atomics ~32× left `volumetrics_inject_ms` at 0.243 ms on `--combustion-lab`, while stubbing `accumulateCombustionLightMoment` saved ~0.06 ms — its arithmetic (four `froxel_to_world` cell-volume reconstructions + `pow`\u002F`exp` per luminous froxel, precomputable per slice), not the PCIe atomics. Do not re-file the atomics; a profile showing that quadrature is the lead. The combustion local grid (`volumetrics\u002Flocal_grid.rs`, #6531 \u002F #6533, plan `docs\u002Fengine\u002Ffire-volumetrics-plan.md`) is bounded, not O(scene): at most `LOCAL_GRID_MAX_BOXES` boxes of `LOCAL_GRID_DIM`³ cells, only for transport emitters within `LOCAL_GRID_REACH_METERS` (hysteresis 1.25×; farther fires stay on the froxels), with occupancy bricks (`LOCAL_GRID_BRICK`) letting the composite march skip empty space and a baked species phase table (`combustion_phase_bake.comp`, run once) instead of per-sample `pow` lobes — a per-frame phase evaluation, a box per emitter past the cap, or a sim dispatch on a frame with no live box is the regression. Bloom is a pure O(pixels) pyramid (2×2-box downsample + in-place apply). SVGF = 1 temporal + 3 à-trous dispatches under one bracket, which also holds the direct-shadow filter's own nested `shadow_filter_ms` bracket (~0.35 ms on Whiterun TAA; #5959, open, also carries an untraced +1.4 ms `main_render_ms` Whiterun reading inside ~0.7 ms per-launch noise, and whether to accept the filter's cost).\n- The sky-cube bake is a fixed per-frame cost that also runs in interiors that never sample it, and ground-cover scatter traces the TLAS per candidate: quantify with `sky_cube_ms` \u002F `groundcover_scatter_ms` before proposing a gate. Measured 2026-10-21 (#6316, closed by `c7b3f605e`; bracket added in `994620123`; RTX 4070 Ti): `sky_cube_ms` 0.21-0.23 ms with its nested `cloud_shadow_ms` 0.034 ms, interior and exterior alike, so an interior cloud-shadow gate saves at most ~0.03 ms (a gate interacts with the `exterior_sky_tint.w` ready flag — `\u002Faudit-renderer` Dim 2).\n- Terrain parallax (`terrainParallaxDisplaceUV` in `triangle.frag`, #6197, `b81a43443`) is a 6–20 step view-ray march inside the main pass, near-camera only (range 20 m default, faded from half of it; settings ride `GpuTerrainTile`); measured at defaults -0.04 ms mean `main_render_ms` over 20 area x pose rows (inside noise), \u003C= +1.0 ms at the slider maxima — quantify with `terrain.parallax` A\u002FB before filing.\n- TLAS rebuild-vs-refit frequency; a missing AS build→read barrier is HIGH.\n- G-buffer bandwidth: 8 colour attachments × 2 FIF; under `--upscaler taa` the reactive mask is sampled by TAA (#4944) but the T&C mask is written unsampled (known cost). Opaque draws that allow early fragment tests go through `pipeline_early` (`triangle_early.frag.spv`); eligibility admits material kinds 0..=`MATERIAL_KIND_MAX_LIGHTING_SHADER` (16, #5057; `early_fragment_kinds_have_no_discard_or_depth_write_path`) — a draw losing that eligibility pays late-Z shading.\n- Disney ALU is in `include\u002Fpbr.glsl` — lobes must not run for fragments that never reach them. #5249's transmission shadow trace (up to `MAX_TRANSMISSION_SELF_SKIPS` 8 self-skips, plus the glass leg of the remaining segment since #5455\u002F#5565) is not governed by the ray tier, but #5401 measured it: a pinned-tier A\u002FB with the trace gated off moved `gpu_main_render` by at most ~3 % on FO4 InstituteConcourse\u002FMedTekResearch01 and Skyrim WhiterunBanneredMare — inside noise, no change made. Re-open only with a worst-case view (large on-screen share of SOFT_LIGHTING\u002FBACK_LIGHTING\u002FTRANSLUCENCY materials, light behind) and the same A\u002FB. Legacy WRS arrays exist only with `ENABLE_LEGACY_WRS` (shipped 0; `NUM_RESERVOIRS` applies only then) — a shipped `triangle.frag.spv` \u002F `triangle_early.frag.spv` built with it on taxes every frame (`scripts\u002Fcheck-shader-artifacts.sh` rebuilds both). `inv_vp` is computed once on the CPU (UBO); a shader-side per-invocation `inverse()` is the regression.\n- Depth-history copy runs only when `scene_has_effect_soft_material`; an every-frame copy is the regression. A perf \"win\" that is only an adaptive-ray-tier drop is not a win (bench discipline).\n- Cold blend-variant compile is the multi-second stall: the pipeline cache must keep persisting when variants are created (`save_pipeline_cache_if_grown`).\n- **Speculative-Vulkan caveat**: render-pass\u002Fbarrier\u002Fpipeline findings invisible to `cargo test` need RenderDoc evidence or a revert plan — state confidence.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_5.md`\n\n### Dimension 6: Skinning & BLAS cost\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fskin_compute.rs`, `shaders\u002F{skin_palette,skin_vertices}.comp`, `acceleration\u002Fblas_skinned.rs`, `context\u002F{skinned_blas_refit,dispatch_skin_and_cluster}.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fskin_slot_pool.rs` (`pose_dirty`, `try_mark_pose_dirty`, `clear_pose_dirty`), `byroredux\u002Fsrc\u002Frender\u002Fskinned.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fskin_compute.rs crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002Fskinned_blas_refit.rs crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fskin_slot_pool.rs`; `skin.coverage` + `skin_*_ms` quantify every dispatch-count claim.\n**Guard**: bin `skin_dispatch_ran_rollback_scope_tests` (`app_frame.rs`), `palette_dispatch_uses_the_dirty_plan_and_rearms_late_bind_inverses` (`dispatch_skin_and_cluster.rs`), `a_reused_plan_scratch_keeps_capacity_and_drops_the_previous_plan` (`skin_compute.rs`), `skinned_blas_stays_fx_hashed`.\n**Checklist (landed fixes — do not re-propose)**:\n- The palette multiply is its own pass and dispatches only dirty slot runs (`plan_palette_dispatch`); a dense full-range dispatch every frame is the regression. `bind_inverses` is persistent, uploaded once at first sight (per-frame upload O(first-sight entities)).\n- Dispatch-dirty gate: skip when the bone-pose hash (FNV-1a over the bone-world slice) is unchanged; `pose_dirty` is an `FxHashSet` on `SkinSlotPool`; the gate must never skip before `SkinSlot.has_populated_output` flips.\n- BLAS refit gate: `refit_skinned_blas` skips on `built_this_frame` or (`has_populated_output && !is_dirty && has_skinned_blas`); refit dominates, rebuild only on bone-count change or after `SKINNED_BLAS_REFIT_THRESHOLD` (600) + `SKINNED_BLAS_REFIT_JITTER` (60) via `skinned_blas_refit_limit(entity_id)` — a flat shared threshold makes every entity rebuild the same frame. `SKINNED_BLAS_FLAGS` is `FAST_BUILD` on purpose (measured; memory-budget.md).\n- Steady state writes 0 descriptors (`SkinSlot.descriptor_bindings[frame]` match skips `vkUpdateDescriptorSets`); a bailed `draw_frame` rolls back the pose-hash commit and requeues first-sight `bind_inverses` (`skin_dispatch_ran`, `bind_inverse_upload_failed`, `app_frame.rs`); morph deltas are shared per mesh (`morph_delta_cache`); `MorphSlot` eviction drains outside the `skin_compute` + `accel_manager` guard.\n- Known ceiling, quantify first: all skinned builds\u002Frefits share one scratch and serialize (`skin.coverage`, `gpu_skin_blas_refit_ms`).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_6.md`\n\n### Dimension 7: World streaming, cell transitions & parse cost\n**Paths**: `byroredux\u002Fsrc\u002Fstreaming\u002F`, `byroredux\u002Fsrc\u002F{streaming_helpers,app_step,loading_screen}.rs`, `byroredux\u002Fsrc\u002Fenv_translate\u002F`, `byroredux\u002Fsrc\u002Fcell_loader\u002F{unload,transition,load,load_order,created,exterior,exterior\u002F{apply_job,persistent,worldspace},work_budget,precombined,nif_import_registry,partial,water,reference_state,legacy_lod_index,lod_bands,lod_support}.rs`, `byroredux\u002Fsrc\u002Fcell_loader\u002Freferences\u002Fattach.rs`, `byroredux\u002Fsrc\u002Fscene\u002Fworld_setup.rs` (per-frame `apply_cell_weather` \u002F `apply_cell_region_ambient`), `byroredux\u002Fsrc\u002Fasset_provider\u002Ftexture_prefetch.rs`, `byroredux\u002Fsrc\u002Fnpc_spawn\u002F` + `byroredux\u002Fsrc\u002Fnpc_spawn\u002Fresumable\u002F` (cooperative per-part actor assembly), `crates\u002Fsfmaterial\u002Fsrc\u002Freader.rs`, `crates\u002Fnif\u002Fsrc\u002F{stream.rs,import\u002F,blocks\u002F}`, `crates\u002Fplugin\u002Fsrc\u002Fesm\u002Frecords\u002F{parse,index}.rs` (`index.rs`: the load-order fold, `merge_from`).\n**First step**: `git log --since=… --format='%h %s' -- byroredux\u002Fsrc\u002Fstreaming byroredux\u002Fsrc\u002Fcell_loader byroredux\u002Fsrc\u002Fscene\u002Fworld_setup.rs crates\u002Fnif\u002Fsrc\u002Fstream.rs crates\u002Fplugin\u002Fsrc\u002Fesm`; the `cpu_ms:` split classifies a stall (Dim 8).\n**Guard**: `byroredux\u002Fsrc\u002Fstreaming_tests.rs`; NIF dhat bounds (`crates\u002Fnif\u002Ftests\u002Fheap_allocation_bounds*.rs`, a sequential `harness = false` main since #5050); mid-life equip and corpse appearance share one `AppearanceProviders` archive set (#5061) — a loader opening its own archives on the main thread is the regression.\n**Checklist**:\n- Boundary-cross stall. `pre_parse_cell` runs each fresh NIF \u002F FO4 precombine as a pool task that extracts its own input (`pre_parse_one`; archive reads are lock-free positional reads) after the coordinator admits it against `STREAM_PARSE_INPUT_BYTES` (64 MiB) using the archive-declared size (`mesh_declared_size`) — a serial extract on the coordinator, or allocating ahead of admission, is the regression; serial fast path below `PRE_PARSE_RAYON_MIN` (8). FO4 precombines are CSG-decoded on the worker (`decode_precombine_csg`), so `PrecombinedSpawnJob` only spawns; the material merge is *not* on the worker — `merge_precombine_materials` (precombines) and `merge_external_materials` (ordinary partial imports) run on the main thread in `finish_partial_import` (`cell_loader\u002Fpartial.rs`; pre-existing, quantify before filing). Streamed NIFs' textures are prefetched on the stream pool (`PrefetchStore`, `STAGED_BYTE_CAP` 256 MiB, cleared when the cell's apply ends); main-thread texture extraction per apply slice is the telemetry to diff. The worker's cross-request `batch_keys` memo (`recv_next_batch_request`, `worker_batch_duplicate_skips`) prevents duplicate parses in a burst. NIF mesh\u002Fcollision import runs on the **worker** (`PartialNifImport`); the main-thread drain re-interns strings (`reintern_imported_meshes`) and runs the material merge above — any further import work back on the main thread is the regression.\n- Exterior apply and the interior door path are budgeted: `STREAMING_APPLY_BUDGET` seeds a `FrameTimeBudget` that `load_references_budgeted` yields against (placements, NPC sub-NIFs); `InteriorCellApplyJob` keeps the cursor across frames and cancels via `unload_cell`. Boot, save-load restore and debug loads (`load_cell_with_masters`) are unbudgeted by design. NPC spawn cost: `npc_spawn_wall` in the end-of-cell log. A door transition reuses the resident load-order parse through `SharedParseCache` (`cell_loader\u002Fload_order.rs`, keyed by plugin paths + length + mtime; #6123, `588c87bc4`, `a_second_transition_over_the_same_plugins_does_not_parse`) — a per-transition main-thread re-parse (1.5–8 s) is the regression; no game re-parses interior→exterior any more: the landscape inheritance (`needs_exterior_processing(game)`) runs on every fresh shared parse, so one parse serves both session kinds (#6591, `f9f3eb831`, `one_parse_serves_an_interior_session_and_then_an_exterior_one`: `apply_exterior_processing` is idempotent and walks only exterior cells, so the *exterior_ready* flag and `parse_record_indexes_shared`'s `exterior` parameter are gone; Oblivion, FO3\u002FFNV, Skyrim and FO4 re-parsed at the first door out before it, FO4 + DLC 2.85 s and ~1.2 GB RSS peak, #6407, `d32e2ade8`; Skyrim's Use Land Data children inherit Tamriel's landscape in that same pass, #6594, `d548def7d`) — a re-parse at that door is the regression.\n- Per-crossing costs that were once per-frame or per-rebuild (regression guards): `apply_cell_weather` (was *apply_cell_climate_override*; now resolves the cell's own `XCCM` climate, else the weather table of the regions whose polygons cover the cell, else the worldspace climate default, through `env_translate::resolve_cell_weather` with an 8 s cross-fade on change — #6725 Phase 1, `ea5417dc7`) resolves a grid cell once, success *or* failure (`WorldStreamingState::climate_override_grid`, same shape as `applied_region_ambient`; #5529, `2fd7ee270`) — a failed XCCM re-resolving plus a `warn!` per frame is the regression; LOD-water recentering reuses the projection computed once in `spawn_lod_water_plane` (carried on `LodWaterPlane`) and uploads through `upload_scene_meshes_batched` with one fence wait (#5289, `310723850`) and the rebuild itself waits for the ring apply to settle — one fence-waited upload per settled crossing, spaced by `LOD_WATER_REBUILD_INTERVAL` with a `LOD_WATER_MAX_DEFER` (4 s) starvation bound (`lod_water_rebuild_due`, #5705, `eacaaa1dc`, `lod_water_rebuilds_once_per_settled_crossing`, `lod_water_rebuild_defer_is_bounded_and_spaced` in `streaming_tests.rs`) — a rebuild per landing cell is the regression; the precombine job treats the worker's negative cache entry as terminal (`lookup_precombine_cache` → `PrecombineCacheLookup::KnownFailure`, #5522, `2ca9bc313`) — a main-thread re-parse there has no `catch_unwind`; stale streaming payloads salvage their parsed imports (#5512, `b5ae3e5cb`), queued on `WorldStreamingState::stale_salvage` and finished one import per budget unit by `salvage_one_queued_import` so the frame-budget yield check sits between imports, not after hundreds of back-to-back NIF finishes (#5715, `125a21c2b`, `queued_salvage_finishes_one_import_per_call`); `attach_vmad_scripts` decompiles each `.pex` once per script name (`DecompiledPexCache`, #5999, `f28930504`) — a per-REFR decompile is the regression; both apply jobs build `effective_absorbed_refs` once per job, not per slice (#6127, `67e724c3e`), and `pre_parse_cell` skips a STAT\u002FSCOL ref that a present precombine absorbs through that same set (`bake_absorbed_refs`; ~95% of FO4 exterior placements — a worker pre-parse of a model the cell never spawns, and the 2048-entry registry slot it takes, is the regression; a missing bake un-skips exactly its refs — #6097, `88149ae26`, `a_present_bake_absorbs_exactly_its_own_refs`; and the held-back absorbed models are parsed in a second, normally empty pass only for refs whose bake parsed with zero meshes, because the main thread skips a ref only when its bake spawned something (#5484) and a worker that never parsed those models leaves each unique one an inline extract + parse there — #6342, `f72083645`, `drawn_absorbed_refs`, `a_bake_that_exists_but_draws_nothing_does_not_absorb_its_refs`); the terrain-height cache answers a warm entry before decoding the source DDS (#6314, `aa10b9bd6`, `warm_cache_hit_does_not_decode_the_source`); the loose Data indexer walks each canonical directory once to `MAX_LOOSE_DEPTH` (32), so a symlink loop cannot multiply boot-time `read_dir` calls (#6243, `120b7df86`, `loose_tier_walks_a_symlink_loop_once`); `step_created_references` runs only while a created record is unplaced or when the record counts \u002F loaded grids \u002F interior root change (`created_work`, #6125, `56fc348b8`, `the_step_gate_changes_only_with_the_records_or_the_loaded_cells`), and `EsmCellIndex::locate_refr` answers from a lazy reverse index cleared by `merge_from` (`locate_refr_uses_a_reverse_index_that_merge_from_rebuilds`) — an every-frame created-record sweep or a linear `PlacedRef` scan is the regression. Unmeasured per-tile cost: since #6076 (`ca12e5638`) a tile outside the `PersistentCellWindow` linearly filters the worldspace persistent CELL's refs (`persistent_refs_for_tile`, ~6 k on WastelandNV) at apply and again at unload (`ensure_persistent_actor_stubs`) — quantify before filing.\n- Batched teardown: a crossing unloads its ring via `unload_cells` (one global `shrink_storages` + `shrink_blas_scratch_to_fit` after the last victim), despawning through `World::despawn_batch` → `PackedStorage::remove_entities_erased` (one sorted-merge pass, in-place swap+truncate); a per-entity `Vec::remove` loop is the quadratic regression. `detach_victims_from_surviving_parents` reads every victim's `Parent` under one query guard and tests membership by binary search (#5418, `9bbe9304e`, `detach_victims_takes_one_parent_guard_for_the_whole_sweep`) — a per-victim `world.get::\u003CParent>` is the regression. `UnloadPhaseTimings` is wired only on the `app_step.rs` batch path.\n- NIF import-cache hit rate across cells; CDB parsed **once** per archive load. Parse allocation (dhat-testable — propose bounds): bulk arrays via `read_pod_vec`, `allocate_vec` results used (`#[must_use]`), block counters via `entry().get_mut()\u002Finsert` not `or_insert(name.to_string())`, skin\u002FSSE scratches reserved up front, emitter extraction import-time only.\n- ESM parse on the first-cell path: `parse_record_indexes_in_load_order` walks each plugin (`parse_esm_with_load_order`, single-threaded: 1.3–2.0 s per vanilla master, `SeventySix.esm` 4.7 s, `Starfield.esm` 5.3 s) on the rayon pool and folds them in load order (#3813), so a whole order costs about its largest walk plus the fold (2026-09-28: FO4 + 7 DLC 3.69 → 2.85 s, Starfield 14 plugins 11.85 → 7.72 s; parse-time peak RSS + roughly the largest plugin's file size; table in `docs\u002Fengine\u002Fmemory-budget.md` \"ESM Index\"). Regressions: anything order-dependent moving into the walk (slot\u002Fremap allocation, `read_archive`, `merge_from` — #3403, #3384, #3543), a walk touching shared state, or a caller installing `StringsTableGuard` on its own thread; `load_order_parallel_tests` digests the parallel index against the inline walk (synthetic chain always, real FNV\u002FFO3\u002FSkyrim SE\u002FFO4 orders `--ignored`).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_7.md`\n\n### Dimension 8: Telemetry & camera-relative origin cost\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fgpu_timers.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fmod.rs` (`ScratchTelemetry`), `byroredux\u002Fsrc\u002Fsystems\u002F{debug,metrics}.rs`, `byroredux\u002Fsrc\u002Frender\u002Fcamera.rs`, `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002F{build_and_upload_instances,draw,telemetry}.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fmetrics.rs` (`MetricsSnapshot`), `crates\u002Fdebug-protocol\u002Fsrc\u002Flib.rs` (`MetricsPayload`), `crates\u002Fdebug-server\u002Fsrc\u002Fevaluator.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fgpu_timers.rs byroredux\u002Fsrc\u002Fsystems\u002Fdebug.rs byroredux\u002Fsrc\u002Fsystems\u002Fmetrics.rs crates\u002Fcore\u002Fsrc\u002Fecs\u002Fmetrics.rs crates\u002Fdebug-protocol\u002Fsrc\u002Flib.rs`.\n**Checklist**:\n- GPU timers: brackets read back via `read_and_reset` into `GpuTimerSnapshot`, `MAX_FRAMES_IN_FLIGHT` behind (never stalls); readers honour the `_active` flag (skipped pass ⇒ `_ms == 0`); the documented bracket count, `QUERIES_PER_FRAME` (62) and the inventory table must equal the live ones (doc-count rot recurs); `BENCH_GPU_KEYS` (`main.rs`) must follow the bracket order (`bench_gpu_keys_match_the_reported_bracket_order`); a sum over brackets must skip nested children (#4977). `BYRO_PROFILE` adds a PIPELINE_STATISTICS pool (`opaque_fragment_invocations`).\n- `cpu_ms:` (`log_stats_system` via `cpu_breakdown`) splits the frame into `fence_wait` \u002F `acquire` \u002F `submit_present` \u002F `ssbo_build` \u002F `pipeline_compile` \u002F `parameter_upload` \u002F `fog_cluster` \u002F `post_present` \u002F `geom_rebuild` \u002F `tlas_build` \u002F `cmd_record` \u002F `rof_*` \u002F `atw_pre` \u002F `atw_scheduler` \u002F `atw_post` \u002F `between_frames` (`fog_cluster` is subtracted from `cmd_record`, #4810). Buckets **nest**, not sum: `atw_pre` \u002F `atw_scheduler` \u002F `atw_post` are sequential siblings, and `atw_post` ⊇ the whole `render_one_frame` (`rof_pre_draw` + `rof_draw_call` + `rof_post_draw`, so every `draw_frame` sub-bucket too; pinned by `atw_bracket_nesting_tests`, #4208); only `between_frames` lies outside `render_one_frame` (compositor throttle, loop sleep). Large `fence_wait` ⇒ GPU stuck on a prior submit; large `atw_scheduler` with `fence_wait≈0` ⇒ pure CPU; large `atw_post` with small `rof_*` ⇒ post-scheduler cell-load steps \u002F uploads (with large `rof_*` it is the render path); large `between_frames` alone ⇒ not the engine. Release builds for dense cells.\n- Wire parity: every `MetricsSnapshot` field reaches `MetricsPayload` — the conversion in `evaluator.rs` destructures the snapshot exhaustively, so a new core field is a compile error until it is carried, and `metrics_response_mirrors_core_snapshot` pins the values (`cpu_pass_ms` \u002F `top_systems_ms` were dropped on the wire until #6278, `05d94dd61`; both are `serde(default)`, so an older peer still parses, `wire.rs`). A telemetry field the debug CLI cannot see is a finding.\n- `ScratchTelemetry` (`ctx.scratch`): capacity vs used vs wasted for renderer scratches (including `VolumetricsPipeline`'s two, shrunk at frame end — #5952, `the_volumetrics_scratches_are_shrunk_through_the_pipeline`) and, after `renderer_row_count`, the engine's `build_render_data` scratches; diff for over-reserved scratch and for a scratch with no row.\n- Camera-relative origin: the origin snaps to the 4096-unit cell grid (`RENDER_ORIGIN_SNAP`); `assemble_camera` adds one `look_at_mat4` (glam 0.33's `math::camera::rh::view`, `c6b8d4584`) and `rebase_model_matrix` runs inside the existing O(visible-instances) loop — verify no second pass. On a grid crossing `origin_corrected_prev_view_proj` preserves TAA\u002FSVGF\u002FFSR history (#1489); dropping history per crossing is a HIGH perf+quality regression.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_8.md`\n\n## Phase 3: Merge\n\n1. Read all `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_*.md`.\n2. Combine into `docs\u002Faudits\u002FAUDIT_PERFORMANCE_\u003CTODAY>.md`: **Executive Summary** (findings by severity; observed-vs-ROADMAP delta, not absolute FPS) · **Hot Path Analysis** (per-frame CPU + per-pass GPU cost table from `gpu_timers` \u002F `ScratchTelemetry`, with the RT quality tier stated) · **Findings** (CRITICAL first, deduplicated; eroded guards separate from new issues) · **Prioritized Fix Order** (quick wins — scratch reuse, preallocation, gate restoration — before architectural changes) · **Stale skill premises**.\n3. Remove cross-dimension duplicates.\n\n## Phase 4: Cleanup\n\n1. `rm -rf \u002Ftmp\u002Faudit\u002Fperformance` — skip when launched by `\u002Faudit-suite`, which reconciles the report against the scratch files. 2. Tell the user the report is ready. 3. Suggest `\u002Faudit-publish docs\u002Faudits\u002FAUDIT_PERFORMANCE_\u003CTODAY>.md`.\n","# Performance Audit\n\nRead `.claude\u002Fcommands\u002F_audit-common.md` and `.claude\u002Fcommands\u002F_audit-severity.md` for shared protocol (layout, methodology, dedup, context rules, path-reference convention, finding format, hot-path hashing rule).\n\nAudit ByroRedux for CPU hot-path inefficiency, per-frame allocation churn, draw\u002Finstancing waste, GPU memory pressure + eviction thrash, SSBO sizing\u002Fupload cost, pass cost and streaming stalls. **Do not re-derive memory ceilings** — `docs\u002Fengine\u002Fmemory-budget.md` owns every size, threshold, reserve floor and VRAM budget; cite it.\n\n**Architecture**: Orchestrator. Each dimension runs as a Task agent (max 3 concurrent), with the model `_audit-common.md` § Delta-first scoping step 5 sets.\n\nHardware target: **RTX 4070 Ti (12 GB) + Ryzen 7950X (16c\u002F32t)**; RT VRAM minimum 6 GB. A CPU bottleneck here is a **bug**, not a tuning gap — dimensions are ordered by per-frame impact.\n\n## Parameters\n\n- `--focus \u003Cdimensions>`: comma-separated numbers (e.g. `1,3,5`). Default all 8. `--depth shallow|deep`: pattern scan vs traced + quantified. Default `deep`.\n\n## Extra Per-Finding Fields\n\n- **Dimension**: CPU Hot Paths | Draw & Instancing | GPU Memory Pressure | SSBO Sizing & Upload | GPU Pipeline | Skinning & BLAS | Streaming & Cells | NIF Parse | Telemetry & Origin Cost\n\n## Bench discipline (never hard-code numbers)\n\n- ROADMAP.md carries the **live Bench-of-record** (`scripts\u002Ffsr-bench-matrix.sh 3 300`, `renderer-stepped`, five scenes × TAA\u002FFSR presets, with a same-machine control of the outgoing record): read it, its open regressions (**R6a-regress-22**: the \"FO4 frame time doubled inside `4c9a5b36..99933f87b`\" reading was `b9e961eeb` moving the bench camera's spawn origin into the room, not code — #5128's pinned-pose control; the known-open residual is ≈ +0.7 ms \u002F fence +2.6 ms from the old pose, the top-of-frame all-slots fence wait tracked as #5365. Before comparing two bench records, check their `camera_pos` columns match; and **R6a-regress-23**: the live record is `d9a201c71` (2026-10-22, controlled against `a3a7a43b0`), and HEAD reads 1–9% slower than that control on every scene — Cornell, the content-identical one, +0.99 ms TAA; the SVGF bracket is +0.22–0.35 ms (the `gpu_shadow_filter` bracket inside it) and *gpu_main* +0.5–1.2 ms on Cornell \u002F Whiterun \u002F MedTek is unattributed) and the compat table; report **observed-vs-ROADMAP deltas** — a regression is a delta. Scenes: Cornell (redistributable control), Prospector (FNV), WhiterunBanneredMare (Skyrim), MedTekResearch01 + Dugout Inn (FO4).\n- Run shape: `--bench-frames N [--bench-hold] [--bench-mode renderer-static|renderer-stepped|system-live]`. Compare only within one mode (baseline TSVs in `.claude\u002Faudit-baselines\u002Fruntime\u002F` are renderer-static; the record is renderer-stepped); the mode owns delta-time, so never set `BYROREDUX_FIXED_DT`. Point `BYROREDUX_SETTINGS_PATH` at a fresh file and pass `--upscaler` explicitly, or a persisted `render.upscaler` changes the run (#4947); the `bench:` line reports `upscaler=`\u002F`render_extent=`\u002F`output_extent=`. Measure the noise floor first (`scripts\u002Fbench-variability-envelope.sh`); a delta inside it is not a finding. `--bench-capture-every N --bench-capture-dir DIR` (`bench_capture.rs`, `f7194719f`) is a capture mode: every screenshot stalls its frame, so take timings from a separate run without it.\n- **Harness byte-stability.** `scripts\u002Ffsr-bench-matrix.sh` + `scripts\u002Ffsr_bench_report.py` must stay byte-stable across commits or cross-commit comparisons mean nothing. Never assert it from memory (#4024): run `scripts\u002Fcheck-bench-harness-provenance.sh [--strict] [\u003Crecord-commit>]` (full history required) and quote the verdict; a *DIVERGED* verdict → re-bench both sides. An edit to either file that was not itself re-benched is a finding (against the live `d9a201c71` record the verdict reads DIVERGED with one edit, `e7d7af3c9` (M-LIGHT Phase 1b), which moved the scene table (`scene_dir`, `scene_entity_floor`, `run_scene_args`) verbatim into the sourced `scripts\u002Fbench-scenes.sh` — recorded as measurement-neutral by inspection (`0be5f6c83`, #6598: no run arguments, gates or arithmetic changed), so re-run the check before trusting a cross-commit delta rather than assuming byte-stability; `fc83608d3`'s `gpu_shadow_filter` and `994620123`'s `gpu_cloud_shadow` column appends predate it; the `a3a7a43b0` record reads DIVERGED with three edits, those two (#5959; #6316, its disposition landed with #6336, `a74c2bdf0`) plus `e7d7af3c9`, each carrying a recorded disposition; the older `a37fcba3c` record reads DIVERGED with five, each carrying a recorded disposition the script prints — #5451, fixed in `4b9472909`: the Prospector `Update.bsa` mount was shown measurement-neutral by a same-session interleaved control, the `camera_pos` and `gpu_shadow_filter` columns are append-only. Without `--strict` a DIVERGED verdict still exits 0; dispositions annotate only, the verdict, exit code and `--strict` are unchanged).\n- **Adaptive ray budget**: the RT quality tier follows GPU time (`AdaptiveRayBudget`), so a lighting-cost delta is uninterpretable without it — pin with `--rt-test-ray-quality-tier N` for A\u002FB, else report the tier.\n- **Hooks** (`byro-dbg` after `--bench-hold`; no `bench-stats` command exists): the once-a-second `gpu_ms:` \u002F `cpu_ms:` lines, `MetricsSnapshot` (over the wire `MetricsPayload` carries `gpu_pass_ms`, `cpu_pass_ms` and `top_systems_ms`, so `byro-dbg` can name the slow system and the slow CPU bucket without log scraping; #6278, `05d94dd61`), console `ctx.scratch`, `skin.coverage`, `rt.integrity`, `depth.stats`. Cite a timer, not a guess.\n\n## Regression-guard posture\n\nEach dimension lists landed fixes as `Guard:` lines — **verify the symbol\u002Ftest still exists and holds; never re-propose a landed fix** (noise); an eroded guard is a real finding, reported apart from new issues. Std `HashMap`\u002F`HashSet` on a per-frame per-entity keyspace is a fresh regression (the Fx conversion is finished). Falsified by measurement, re-propose only with new numbers: decorate-sort-undecorate for the raster sort (#4194, `manual_bench_draw_sort_decorate_sort_undecorate`, `render\u002Fdraw_sort_key_tests.rs`).\n\n**Alloc coverage**: NIF parse\u002Fimport allocation is dhat-testable (`dhat-heap` feature; bounds in `crates\u002Fnif\u002Ftests\u002Fheap_allocation_bounds*.rs`) — propose a bound, don't estimate. Per-frame render\u002FECS paths have NO dhat coverage: flag \"no quantitative guard exists for this site\".\n\n## Per-frame pass inventory (verify against code; a pass missing here is itself a finding)\n\nCommand-buffer order (`draw_frame` phases, `vulkan\u002Fcontext\u002F`). Timer = `GpuTimerSnapshot` field (31 brackets: 26 named + 5 main-render sub-phases); a new named pass is a `TimerPass` variant + const row in `gpu_timers.rs` (#6358, `0288f468d`; `cmd_start` \u002F `cmd_end` take the row, no per-pass methods, `every_named_bracket_has_exactly_one_pass_row`) and needs a bracket, a row here and a `memory-budget.md` row. Nested brackets (`main_opaque_ms` \u002F `main_blended_ms` \u002F `main_water_ms` \u002F `groundcover_model_draw_ms` \u002F `groundcover_blade_draw_ms` inside `main_render_ms`; `volumetrics_inject_ms` \u002F `volumetrics_integrate_ms` \u002F `volumetrics_local_sim_ms` inside `volumetrics_ms`, #6533; `shadow_filter_ms` inside `svgf_ms`, #5959; `cloud_shadow_ms` inside `sky_cube_ms`, #6316) are never summed with their parent.\n\n| Pass | Where | Runs when | Scales with | Timer |\n|---|---|---|---|---|\n| Static-BLAS recovery | `restore_missing_static_blas_for_draws` via `step_static_blas_restore` (`app_step.rs`), *between* frames | missing rigid BLAS; deadline-bounded chunks; skipped if the set cannot fit the budget | missing meshes (~0.2–0.5 ms each, blocking) | CPU only |\n| Dynamic-RGBA copies, reservoir clear | `begin_frame_recording` (`texture_registry\u002Fdynamic_rgba.rs`, `ReservoirBuffers::begin_frame`) | pending same-size RGBA updates; every frame | changed textures; pixels | none |\n| Instance\u002Fmaterial\u002Flight upload | `build_and_upload_instances.rs`, `scene_buffer\u002Fupload.rs` | every frame; hash dirty gates | live draws, unique materials | `ssbo_build`, `parameter_upload` (CPU) |\n| Skin palette | `skin_palette.comp` via `plan_palette_dispatch` (`dispatch_skin_and_cluster.rs`) | dirty slot runs only | changed bone slots | `skin_palette_ms` |\n| Skin vertices | `skin_vertices.comp` per entity | pose-hash dirty gate | dirty entities × verts | `skin_dispatch_ms` |\n| Skinned BLAS refit | `record_skinned_blas_refit` | dirty gate; rebuild after 600 + jitter refits | dirty entities; shared scratch serializes | `skin_blas_refit_ms` |\n| TLAS build\u002Frefit | `build_tlas` | every frame; UPDATE vs BUILD by address sequence | instances | `tlas_build_ms` |\n| Cluster cull | `cluster_cull.comp` | every frame | lights × clusters | `cluster_cull_ms` |\n| Ground-cover scatter | `groundcover_interaction.comp` + `groundcover_scatter.comp` (TLAS ray query per candidate); dev bench: `groundcover_bench_ms` | chunks resident (exterior) | chunks × candidate budget | `groundcover_scatter_ms` |\n| Sky-cube bake | `SkyCubePipeline::record_bake`: `sky_cube.comp` (6×128², cloud march) + prefilter mips + SH, then `record_cloud_shadow`: the cloud-shadow map (`cloud_shadow.comp`, `CLOUD_SHADOW_MAP_SIZE`² × `CLOUD_SHADOW_STEPS` march, `vulkan\u002Fsky_cube\u002Fcloud_shadow.rs`; its camera-column readback is read in `begin_frame_recording` after the slot's fence, never stalling) | every frame the pipeline exists (interiors too) | fixed | `sky_cube_ms` (inclusive), `cloud_shadow_ms` nested (#6316) |\n| Ground-cover model tier | `groundcover_models.comp` via `record_groundcover_models` (PLACE\u002FLAYOUT\u002FEMIT into the instance tail) | exterior, chunks resident | candidates | `groundcover_models_ms` |\n| Main geometry pass | `triangle.vert\u002Ffrag` + early-depth `triangle_early.frag.spv` for opaque draws that allow it (RT shadows\u002Freflection\u002FGI\u002Fglass), water, ground-cover models + blades | every frame | pixels × lights × rays (adaptive tier) | `main_render_ms` (+ 5 sub-phases) |\n| Depth-history copy | `copy_depth_to_history` | only if `scene_has_effect_soft_material` (cached, `SceneEffectSoftCache`) | pixels | `depth_history_copy_ms` |\n| SVGF + shadow filter | temporal + 3 à-trous dispatches; then the direct-shadow filter (`shadow_filter.comp`, 2 à-trous iterations over the ReSTIR shadow ratio, `vulkan\u002Fshadow_filter.rs`) | every frame; the filter also runs when SVGF is absent or latched off | pixels | `svgf_ms` (inclusive of the filter) + nested `shadow_filter_ms`, which also brackets the SVGF-absent fallback (`record_shadow_filter`, `post_passes.rs`) |\n| Caustic splat | `caustic_splat.comp` | caustic sources present | refractive pixels | `caustic_splat_ms` |\n| Volumetrics | inject + integrate, combustion-moment readback (one frame behind); the world-space combustion local grid (`volumetrics\u002Flocal_grid.rs`, `volumetrics_local_sim.comp` over up to `LOCAL_GRID_MAX_BOXES` cubic-cell boxes within `LOCAL_GRID_REACH_METERS` of the camera, #6533; its state hash is read back a frame behind); host `fog_cluster` prep | `requires_dispatch` (fog \u002F emitters \u002F combustion live) **and** TLAS, cluster-light and boundary-geometry inputs present (`post_passes.rs`); `VOLUMETRIC_OUTPUT_CONSUMED` is permanently `true` | froxels (resolution-derived) × rays per froxel (`fogRayQualityTier`); local sim: live boxes × `LOCAL_GRID_DIM`³ cells (no live box ⇒ inactive, `volumetrics_local_sim_ms == 0`) | `volumetrics_ms` (+ inject\u002Fintegrate\u002Flocal sim) |\n| SSAO, composite | `ssao.comp`; `composite.frag` (linear HDR; when submerged, also a 24-step per-pixel underwater god-ray march, `underwaterGodRays`, gated on the submersion extinction and reading `view_proj` from the composite UBO, not a per-pixel `inverse()`, #6486 `fa9ada406` (issue stays open for the unmeasured 24-step x 6-tap depth-fetch half: no submerged `composite_ms` measurement exists); when local-grid boxes are live, also the local fire ray-march, built as two pipelines on the `LOCAL_FIRE_SUNLIT` specialization constant so a sun-less frame binds the variant with the sun-lit species-phase path folded out, `15a4ecf10` — 96 vs 126 registers per thread, `docs\u002Fengine\u002Ffire-volumetrics-plan.md`) | every frame; the god-ray march only underwater, the fire march only with live boxes | render pixels | `ssao_ms`, `composite_ms` (the god-ray march is unmeasured — quantify with `composite_ms` below the surface before filing; the fire march is costed per scene in the plan doc: composite 0.36–0.89 ms on its lab scenes, interleaved medians) |\n| Bloom | down\u002Fup chain + `bloom_apply.comp` | skipped under raw debug views | pixels | `bloom_ms` |\n| TAA | `taa.comp` | only `--upscaler taa` | pixels | `taa_ms` |\n| Exposure meter | `exposure_meter.comp` via `record_exposure_meter_pass` (one workgroup; fixed mode writes a constant, auto mode does 4,096 scattered fetches); skipped on raw-debug views | every frame | fixed | `exposure_meter_ms` |\n| Upscale, presentation | FSR 3.1 or native blit; tone-map (ACES \u002F AgX) × exposure texel (+ UI quad) | every frame | output pixels (presentation does not shrink with FSR presets) | `upscale_ms`, `presentation_ms` |\n\nOutside the loop: lazy blend-pipeline variant compilation (seconds each on a cold driver cache; CPU span `pipeline_compile`), the post-present scratch shrink (`shrink_frame_scratch.rs`, CPU span `post_present`) and the streaming\u002Fteardown paths (Dim 7).\n\n## Phase 1: Setup\n\n1. Parse `$ARGUMENTS`. `mkdir -p \u002Ftmp\u002Faudit\u002Fperformance`.\n2. Dedup baseline: `gh issue list --repo matiaszanolli\u002FByroRedux --limit 200 --json number,title,state,labels > \u002Ftmp\u002Faudit\u002Fperformance\u002Fissues.json`.\n3. Read ROADMAP.md Bench-of-record + compat table, and the newest `docs\u002Faudits\u002FAUDIT_PERFORMANCE_*.md`.\n4. **Delta scoping**: run each dimension's `First step:` with `--since=\u003Clast report date>`; untouched Paths get a guard check + skim.\n\n## Phase 2: Dimensions\n\n### Dimension 1: CPU per-frame allocations & hot paths\nThe highest-yield surface: a 16-core Ryzen must never be the bottleneck.\n**Paths**: `byroredux\u002Fsrc\u002Fsystems\u002F{animation,bounds,billboard,particle,cinematic,locomotion,sandbox,wander,travel,follow,escort,guard,patrol,walk_anim,combat_ai,restoration,eat_sleep,forcegreet,story_events,npc_dialogue,dialogue_voice,archetype_idle,trap_hits}.rs`, `byroredux\u002Fsrc\u002Fnpc_spawn\u002Fai_package.rs` (`ambient_ai_package_system`), `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fsystems.rs` (`make_transform_propagation_system`), `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fpacked.rs`, `byroredux\u002Fsrc\u002Frender\u002F{mod,particles,lights,static_meshes,skinned}.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fskin_slot_pool.rs`, `crates\u002Fcore\u002Fsrc\u002Fform_id.rs` (`FormIdPool::entity_with_local`), `byroredux\u002Fsrc\u002Fsystems\u002Fpass_clock.rs`, `byroredux\u002Fsrc\u002Ftexture_streamer.rs` (`update_wanted`, M39).\n**First step**: `git log --since=… --format='%h %s' -- byroredux\u002Fsrc\u002Fsystems byroredux\u002Fsrc\u002Frender crates\u002Fcore\u002Fsrc\u002Fecs crates\u002Fcore\u002Fsrc\u002Fform_id.rs`; scheduler timings in `MetricsSnapshot` name the slow system. Measured (#6718, `db8cfde6a`, record `.claude\u002Fissues\u002F6718\u002FPROFILE.md`, `BYRO_PROFILE=1`, release, 900 frames): all systems together cost 1.5 \u002F 4.8 \u002F 3.3 ms a frame on FNV Prospector Saloon \u002F Skyrim Whiterun \u002F FO4 Shamrock Taphouse (4–12 % of a 34–40 ms Xvfb wall, which is `submit`-dominated and unrepresentative); the only system over 0.5 ms is `physics_sync_system` (Whiterun mean 2.2 ms, max 9.7), already parallel-registered and alone in its Physics stage, so parallel promotion of the others buys nothing. Do not re-file \"promote more systems to parallel\" without a scene showing `systems_ms` above ~8 ms on a real display or a CPU-bound frame; the record notes `interaction_system` and the animation \u002F dialogue \u002F trigger systems were judged on cost, not `access_report()`.\n**Method**: per-frame `Vec`\u002F`HashMap`\u002F`String` allocation that should be a persistent scratch; `collect()` where `clear()+extend` works; `mem::take` capacity churn (0→N regrowth); per-entity allocation or component deep-clone inside a per-frame loop; whole-world scans with no change-detection key; sparse-set probes repeated per entity. Ambient locomotion\u002FAI\u002Fcinematic systems run every frame on every NPC: no component clones (NavPath and `ScenePlayer` clones were real findings), persistent scratch not fresh `Vec`s. Regression guards, fixed (do not re-file): `story_change_location_system` early-outs on an empty\u002Fabsent `SmTree` and hashes the typed LCTN\u002Fgrid fields without `format!` (#5447, `7bba019e1`), and derives the cell kind, LCTN and CLOC key once per cell context through `StoryLocationMemo` (an allocation-free Fx key over the contexts it reads; a per-frame `resolve_current_lctn`, which lowercases an interior's editor id into a fresh `String`, is the regression — #6335, `80471eb78`, `the_location_is_derived_once_per_context_not_per_frame`); `archetype_idle_system` skips its walk while the membership generations of `AnimationTarget` \u002F `AnimationPlayer` \u002F `ArchetypeIdle`, the `Dead` count and the player entity are unchanged (`PassKey`, actor list a persistent scratch on `ArchetypeIdleSeen`; the pass's own inserts move the key once, so it repeats once and settles — #6334, `86ac93e0c`, `a_settled_pass_skips_the_walk_until_an_actor_appears`); the trap -> scripted-owner map in `trap_hits.rs` is rebuilt only when `owner_key` (the structural generations of its six storages) moves and its per-tick body\u002Fcontact sets are Fx (#6312, `9290248d6`, `the_cached_owner_map_follows_script_and_parent_changes`) — a per-tick rebuild or a SipHash set there is the regression; `ambient_ai_package_system` reads `BYRO_M42_DEBUG` once through a `OnceLock` and builds its due list without a per-frame `Vec` (#5448, `9cc748ef2`); `make_eat_sleep_system` keeps a persistent scratch — a per-actor `SEAT_RETRY_SECS` retry clock, one shared sit\u002Fsleep marker gather per frame (#5449, `35a009431`), an `ANCHOR_RETRY_SECS` clock for an unresolved In-Cell anchor and one query pass per storage for the walk leg (#5527, `959b76f55`), and its actor list and retry-map membership set (`EatSleepScratch.actors` \u002F `live`) are reused with seated sleepers skipped at the gather and the retry maps `FxHashMap`s pruned against that set, not three O(retry × actors) `retain(any())` sweeps (#5707, `a08156579`, `seated_actor_is_not_gathered_and_its_clocks_are_pruned`). A per-frame whole-world `Furniture` walk, a per-frame rebuilt actor `Vec` or a per-actor `world.get` round-trip in these systems is the regression. `find_package_system` memoises each candidate row's item kind per base for the current `LoadedCellIndex` (Fx map), staggers each actor's first search across the period by entity id, keeps its behaviour snapshot as persistent scratch, recomputes the arrival class when the target changes and about once a second after, and prunes `search_clock` \u002F `stuck` \u002F the arrival cache to the live Find actors (#6339, `f8c3c5ae3`, `the_item_kind_memo_classifies_each_base_once_per_index`, `first_searches_are_staggered_across_the_period`, `the_arrival_class_is_cached_for_the_walk`); `jail_bed_system` reads `ActivateEvent` first and tests only the player's activation targets with `is_bed`, not a per-frame `Vec` of every bed (#6340, `199714b75`, `is_bed_agrees_with_the_bulk_bed_gather`). Global-FormID resolution is a hash lookup: `resolve_entity_by_global_form_id` answers from `FormIdPool::entity_with_local`, a lazily rebuilt local→entity index keyed on `FormIdComponent`'s structural generation plus the pool length, so Flee \u002F UseWeapon \u002F `find_package` \u002F `travel` \u002F `follow` no longer scan every `FormIdComponent` per actor per frame (4 µs at 2 k entities, 65–131 µs at 30–60 k; a miss paid the full scan each frame) — a per-call `iter().find` over `FormIdComponent` is the regression (#6338, `ab3a604bf`, `entity_with_local_reuses_its_build_until_the_membership_moves`, `the_index_follows_spawns_and_despawns`, `a_duplicate_id_resolves_to_the_first_entity`). The physics water pass keeps its per-wet-body latches (`rest_depth`, `water_force_targets`, the settled-collider set) on the Fx hasher (#5709, `5f01d1a7f`, `water_scan_latches_are_not_siphash` in `crates\u002Fphysics\u002Fsrc\u002Fwater.rs`) — a std `HashMap`\u002F`HashSet` there is the regression. The Papyrus VM's serial main-thread cost is bounded per frame: `VmFrameBudget` (`DEFAULT_FRAME_BUDGET` 10 000 statements, renewed by `event_cleanup_system`; `fragment\u002Fbudget.rs`) defers un-started runs (a hit it cannot start is deferred onto the continuation queue, not dropped — #5987, `746214f29`) and yields a run in progress, and `ReferenceScriptIndex` (`fragment\u002Freference.rs`) answers FormID → entity in one hash lookup instead of a per-frame rebuild over every attached script (#5763, `195e3b4ef`) — an unbudgeted exclusive interpreter system or a per-call index rebuild is the regression. `collect_deliveries` returns before walking the attached-script entities when the frame raised no marker or watched change (`11685934d`, part of #5764: idle `ref_events` flat at ~1.3 µs from 0 to 20 000 references, `docs\u002Faudits\u002FBENCH_vm-cost_after-5764.txt`), so neither `reference_script_event_system` nor the `OnHit` pass #5991 (`e4810c125`) split into `reference_script_hit_system` walks on a quiet frame — an idle-frame walk, or a third pass over the entities on an event frame, is the regression. Known-open under #5764: deferral costs ~0.8 µs a delivery (needs a compact saved record) and a value-called function or array-holding frame cannot suspend; quantify against it before filing.\n**Guard**: `drain_dirty_into_preserves_storage_capacity` (`packed.rs`; `take_dirty` zero-capacities — its use in a per-frame system is the regression); `make_animation_system` persistent scratches (`entities_scratch`, `playback_scratch`); `make_billboard_system` skips its loop when `last_cam` is unchanged (re-arming `GlobalTransform` `TRACK_CHANGES` every frame defeats incremental bounds); `make_transform_propagation_system` change-detection fast path (skips when roots, `Parent`\u002F`Children` generations and `Transform` dirty are unchanged); `build_debug_ui_snapshot` clone gated on debug UI visible; `SkinSlotPool` `free_list` contraction so `max_used_slot()` shrinks after a high-NPC unload; `bone_world` not `.clear()`ed per frame (identity-fills new tail slots only); `emit_particles` takes no dead `GlobalTransform` query; `scene_has_effect_soft_material` served from `SceneEffectSoftCache` while storages are structurally unchanged; `compute_wanted` (`texture_streamer.rs`, runs every frame once `render.texture_streaming` is on, off by default) resolves a draw's texture-slot widths through a dense handle-indexed table and Fx per-frame maps — it was 1.50 ms on FO4 MedTekResearch01 (8 000 draws × 8 slots of SipHash lookups) and is 0.52 ms there, 0.14 ms on FNV Prospector (`dd2cd84e9`, `docs\u002Fengine\u002Ftexture-streaming.md` §12.4): a std-hasher lookup per draw-slot is the regression; the periodic gameplay systems share one `PassClock::due` (non-finite `dt` adds nothing, `a_non_finite_or_negative_dt_adds_nothing`) and one `living_actors` roster instead of per-system accumulators and per-system `CombatDisposition` sweeps (#6579, `00d53e659`, `living_actors_are_the_stamped_actors_that_are_not_dead`).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_1.md`\n\n### Dimension 2: Draw-call & instancing efficiency\n**Paths**: `byroredux\u002Fsrc\u002Frender\u002F{mod,static_meshes,visibility}.rs` (`build_render_data`, `draw_sort_key`, `sort_draw_commands`, `raster_visible`), `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002F{build_and_upload_instances,draw,frame_params}.rs` (batching; `group_state` \u002F `should_use_indirect_draws` live in `frame_params.rs` since #5087).\n**First step**: `git log --since=… --format='%h %s' -- byroredux\u002Fsrc\u002Frender crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002Fdraw.rs`; `cargo test -p byroredux draw_sort_key`.\n**Guard**: `render\u002Fdraw_sort_key_tests.rs`, `render\u002Fsort_key_tests.rs`.\n**Checklist**:\n- `draw_sort_key` is a 12-tuple `(u8×4, u32×8)`: slot 0 `rt_only` (off-frustum RT occluders last, so the `MAX_INSTANCES` cap drops them before raster), 1 composition phase, 2 blend class, 3 `no_sorter` (true alpha-over only; opaque\u002Fadditive write 0 — #4191), then state\u002Fmesh\u002Fdepth. The opaque depth slot is `opaque_depth_bucket` (raw depth = camera-driven sort churn that defeats the SSBO dirty-gate hashes, #3663). Sorted alpha-over is depth-primary on purpose: its higher `bench_draws_*` counts are accepted cost. Every `PipelineKey` axis needs a sort slot (`blend_pipeline_slot`, `pack_depth_state`).\n- Verify the sort minimizes pipeline\u002Fdescriptor rebinds; draw count vs entity count (compat table reports both); same-mesh instances collapse to one indirect draw; no per-draw state churn (`cmd_set_depth_bias`). R6a-regress-22's apparent batch-merge collapse (Dugout `1935\u002F326b\u002F12c` → `2367\u002F659b\u002F43c`) was a camera move (#5128): pinned to one pose, `99933f87b` merges more (330b → 168b), so a batching finding must compare same-pose captures.\n- `DRAW_SORT_PARALLEL_THRESHOLD` = 3000 (`sort_draw_commands`; measured crossover 2750–3000; `manual_bench_draw_sort_serial_vs_parallel` asserts the two sorts agree before it times them, #6186, `353b12145`). Check it against the `bench_draws_raster_cmds` column of the baseline TSVs — `bench_draws_cmds` also counts RT-only occluders that never enter the sorter; a row with `bench_draws_batches > bench_draws_raster_cmds` cannot come from one capture.\n- Static-mesh loop probes `GlobalTransform` before the visibility\u002Fbounds siblings (#1377); `build_instance_map` reuses a caller scratch (#4193).\n- `needs_two_sided_blend_split` = `is_blend && two_sided && order_dependent_glass` (no `z_write` limb); structurally dormant for engine-classified glass (`collect_static_mesh_draws` clears `two_sided` for `MATERIAL_KIND_GLASS`), so split items cannot explain batch-count movement (#2691); a split on non-glass batches is the regression. The indirect group key carries split *eligibility* (`needs_two_sided_blend_split`), not the raw glass flag, so opaque glass runs merge (#2764, `opaque_glass_flag_does_not_split_groups`; #2165's `blended_glass_flag_still_splits_groups` still holds).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_2.md`\n\n### Dimension 3: GPU memory pressure & eviction thrash\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Facceleration\u002F{predicates,blas_static,constants}.rs`, `context\u002Fresources.rs`, `crates\u002Frenderer\u002Fsrc\u002Ftexture_registry\u002F`, `crates\u002Frenderer\u002Fsrc\u002Fmesh.rs`, `byroredux\u002Fsrc\u002Fstreaming_helpers.rs` (`exterior_pool_reserve`, `defer_geometry_rebuild`), `crates\u002Frenderer\u002Fsrc\u002Fmesh\u002Fpool_limits.rs`, `crates\u002Frenderer\u002Fsrc\u002Ftexture_registry\u002Fbudget.rs`, `byroredux\u002Fsrc\u002Fasset_provider\u002Fmaterial\u002F{provider,cdb,loose_mat}.rs`, `crates\u002Fsfmaterial\u002Fsrc\u002Findex.rs` (the Phase-2 `MaterialIndex`), `crates\u002Frenderer\u002Fsrc\u002Fdeferred_destroy.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Facceleration crates\u002Frenderer\u002Fsrc\u002Ftexture_registry crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002Fresources.rs`; `rt.integrity` shows BLAS residency, missing\u002Fevicted counts and pending-destroy backlog.\n**Guard**: `cargo test -p byroredux-renderer --lib acceleration` (admission\u002Feviction\u002Fresidency tests), `static_blas_recovery_covers_both_sources_and_protects_current_draws` (`resources.rs`), bin `static_blas_recovery_runs_between_frames_not_in_the_render_driver` (`app_step.rs`); `has_any_view_of_path_finds_every_key_variant` (#5053: the prefetch planner's residency probe rewrites one reused key buffer, never 16 `String`s per probe).\n**Checklist** (ceilings: memory-budget.md):\n- BLAS budget is **dynamic**: `blas_budget_for_heap` = (DEVICE_LOCAL heap − `screen_scaled_reservation_bytes`) \u002F 3, clamped to [`MIN_BLAS_BUDGET_BYTES` 256 MB, `MAX_BLAS_BUDGET_BYTES` 1 GB]; the reservation (`render_extent_bytes_per_pixel_x1024`) bills every render-extent pass — including ReSTIR's `RESERVOIR_BYTES_PER_PIXEL_PER_SLOT` and `SHADOW_FILTER_BYTES_PER_PIXEL` per frame in flight (#6035, `9762d9fa2`) — the upscaler's output-extent images and FSR SDK bytes and is re-derived on resize\u002Fupscaler switch; a new screen-sized allocation missing from it starts eviction late. Eviction runs pre- and mid-batch (`blas_over_budget` counts the batch's `pending_bytes`; `BATCH_EVICTION_CHECK_INTERVAL` = 64); admission is bounded on *resident* bytes (`admit_next_static_blas`, `blas_admission_exhausted`) — allocating past residency, or evicting against bytes still in `pending_destroy_blas`, is the regression. LRU must not rebuild-thrash during streaming.\n- Static-BLAS recovery stays a deadline-bounded between-frames step; `plan_static_blas_restore` must still skip a set that cannot fit the budget (else evict→rebuild never converges — the ~95 k-draw Starfield city). Current-frame BLAS ownership is `StaticBlasWorkingSet` (`acceleration\u002Fstatic_working_set.rs`: dense handle-indexed generation stamps, no per-frame hashing, #4804). Documented ceilings, quantify first: `--grid` false-evict burst, shared-scratch serialization (`\u002Faudit-renderer` Dim 1).\n- Scratch high-water: `shrink_blas_scratch_to_fit` (cell unload, resize), `shrink_tlas_to_fit` \u002F `shrink_tlas_scratch_to_fit` (`draw_frame` tail, on the *next* slot) respect the reserve floors (`MIN_TLAS_INSTANCE_RESERVE` = `WORKING_SET_FLOOR` = 8192).\n- `check_pool_growth()` warns\u002Ferrors on vertex\u002Findex pool caps per upload. The caps are 7 M vertices \u002F 28 M indices (`VERTEX_POOL_HARD_CAP` \u002F `INDEX_POOL_HARD_CAP`, `mesh\u002Fpool_limits.rs` since #6520 `cd78f9efe`; raised 4 M\u002F16 M → 5 M\u002F20 M → 7 M\u002F28 M by `3929a406c` and `bb97be77c`, ≈ 840 MB at the caps, `memory-budget.md` mesh-registry row — re-derive from the constants, never copy). Admission is **three-tier** (`GeometryAdmissionClass`, `ab9d46d18` → `22d6e1a80`): `Essential` (terrain, water, terrain LOD) gets the full cap and the global latch; `Actor` (the player and NPC bodies, `with_admission_class` in `scene\u002Fnif_loader.rs`) the cap less the ground reserve; `Prop` (placed statics, object \u002F tree \u002F placement LOD) the cap less ground + actor reserves. A refusal latches only its own tier (`prop_geometry_admission_open`, `actor_geometry_admission_open`, `scene_geometry_admission_open`), so a full pool refuses distant props before people and people before the ground; every latch reopens with the compaction a cell unload triggers. The reserve is sized for the streaming radius, not a flat percentage — `set_pool_reserve(exterior_pool_reserve(radius_unload))` runs in `assemble_exterior_streaming` (a fixed 5 % starved 178 terrain cells at FO4 radius 12; `the_exterior_pool_reserve_scales_with_the_radius`, `radius_4_still_leaves_props_what_they_were_measured_to_need`), and the 3 % ground \u002F 2 % actor defaults apply only before that call; `the_tiers_stop_in_priority_order_and_latch_separately` pins the order. A new upload site must pick its class — a prop-sized upload left `Essential` eats the ground's headroom, and a ground upload wrapped in `Prop` is refused first. The deferred geometry rebuild is bounded: `defer_geometry_rebuild` stops deferring after `GEOMETRY_REBUILD_MAX_DEFER` (15 s) of continuous dirt, or a radius-12 load masks ground and water for its whole duration (`the_geometry_rebuild_deferral_is_bounded`; `geometry_deferred_since` in `app_frame.rs`) — an unbounded deferral is the regression. Exact-content geometry sharing (`mesh\u002Fgeometry_sharing.rs`, fingerprint reused for batch dedup and registration, #4803) and the live-budget-gated chunked geometry rebuild (`geometry_rebuild_needs_idle`) keep pool growth O(unique geometry). A LOD ring whose uploads the full pool refuses reports *Starved* and stops reconciling (`scene_geometry_admission_rejections`, #6054, `a5958adf3`) — re-decoding and re-rejecting every idle frame is the regression. Since #6092 (`635330d08`) every ring checks its tier's admission query before an attempt (`prop_geometry_admission_open()` for object \u002F tree \u002F placement LOD, `scene_geometry_admission_open()` for terrain LOD; skipping the archive read and decode for a certain refusal), a refused quad is held back with no cache entry (never cached as a \"no asset\" miss) and retried the frame the pool reopens — the re-arm edge in `app_step.rs` waits on the stricter prop query, or props starving under the reserve while the essential tier is open would restart every frame (`every_lod_ring_gates_on_admission_and_never_caches_a_refusal`, `starvation_rearms_only_once_admission_reopens`, `lod_support.rs`); Starved closes the boundary as its own terminal state (`starve_lod`, `lod_starved` on the bench line, #6093). A multi-sub-mesh quad or cell the pool refuses part-way is taken back out with `MeshRegistry::abandon_scene_geometry_group` (truncates the pool tails, leaving no hole) rather than `drop_meshes`, whose stranded spans let the next geometry rebuild reopen admission and retry the same group every cycle (#6332, `021e1b824`, `an_abandoned_group_leaves_no_hole_and_admission_stays_closed`). Texture staging is bounded by a **byte budget** (`DEFAULT_STAGING_BUDGET_BYTES`), not a texture count. BGSM\u002FBGEM cache half-evicts (a full flush reintroduces the cold-restart herd). `NifImportRegistry` LRU (`BYRO_NIF_CACHE_MAX`, 2048): per-cell FO4 `_oc.nif` precombine entries are the preferred victims and the first shared-model eviction logs once (`lru_evicts_per_cell_precombine_entries_before_shared_models`); the FO4 peak's shared statics alone (~9.7 k) exceed the cap, so eviction is held off while a streaming batch is in flight: `step_streaming` runs `sync_nif_cache_eviction` (`app_step.rs`) after every step, `WorldStreamingState::cell_load_in_progress` raises `NifImportRegistry::set_eviction_deferred`, the registry may hold up to `DEFERRED_EVICTION_HEADROOM` (8) x the cap, and it trims back to the cap (releasing clip handles) when the batch settles, in one pass: `evict_over_cap` ranks victims once by a `(tier, tick)` key (precombine without a clip handle, then any handle-less entry, then animated; oldest first; a min scan for the single steady-state eviction, `select_nth_unstable` plus a sort for a bulk trim), not up to three O(N) sweeps per victim, which cost ~1 s at the FO4 working set (#6590, `ec5068b40`; a per-victim sweep in the trim is the regression) — the worker's \"already cached\" skip (request snapshot, dispatch-batch memo) no longer turns into a main-thread re-parse (#6114, `304f3b587`, `deferred_eviction_keeps_the_batch_resident_then_trims_to_the_cap`, `deferred_eviction_is_bounded_by_the_headroom`, `deferral_does_not_cap_an_unlimited_registry`); per-entry RAM at the deferred peak is unmeasured (`memory-budget.md`), so quantify with an FO4 boot before calling the 8x headroom wrong. A full-detail slice whose geometry uploads the pool refuses is counted (`full_detail_refusals=` on the bench line) but never retried (#6106, open — needs compaction before the crossing's loads). The Starfield CDB `MaterialIndex` builds on a named background thread started at `discover_starfield_cdbs`, single-flight per CDB (`CdbIndexSlot` = `Arc\u003COnceLock\u003C…>>`) and serialised process-wide so N CDBs never stack N peaks — a first `.mat` lookup that builds inline on the main thread is the regression, and so is a panicking build re-run per lookup (`contain_cdb_build_panic` memoises the failure inside the slot initializer, #5665, `988402d25`, `a_panicking_cdb_build_is_memoised_and_runs_once`) (#5291, fixed in `dd759b762`; re-measured 1.6 s \u002F 247 MB peak \u002F ~115 MB resident per CDB, `memory-budget.md` \"Material index\" row; #5277's per-object `effect_blend` `String` map is part of that footprint). Archive handles are shared process-wide (`Archive::open_shared` (`asset_provider\u002Farchive.rs`), validated by an `ArchiveStamp`: length + mtime, plus (dev, ino, ctime) on Unix so a same-length rewrite that restores the mtime reopens instead of serving another entry's bytes as `Ok`, #5663, `04036a6fb`, `open_shared_rereads_a_same_length_rewrite_that_restores_the_mtime`; the path-keyed Starfield CDB caches are process-lifetime and never re-stamped), so a provider rebuild at a door transition costs ~0.1 ms, not ~125 ms (#5288, `5402b2530`) — a loader re-parsing file tables is the regression (the #3637 shadow count is memoised per archive and ordered preceding pool, so a reused handle joining a *different* pool walks the tables once, #5664, `3ad6289c2`, `a_reused_handle_reports_its_shadow_count_for_the_pool_it_joins`). Dynamic-RGBA staging (`dynamic_rgba.rs`): retry *cadence* under a persistent host-visible failure is part of the #4889 degrade contract — #5275 scoped the warn to the episode and #5528 (`e588e5e67`) backs the arena growth off for `RETRY_INTERVAL_FRAMES` (120) after a failed attempt, unless the request shrinks (`growth_retries_back_off_during_a_failure_episode`, `growth_gate_sits_before_the_allocation`); a failing `vkAllocateMemory` every frame is the regression.\n- **Texture streaming (M39, `render.texture_streaming`, off by default until its open gates close — ROADMAP)**: textures upload floor-first (`residency.rs`: `floor_first_level`, mip-range uploads from a first level) and promote\u002Fdemote per the wanted-mip pass (`TextureStreamer::update_wanted` → `apply_wanted`, Dim 1); the pool is capped by `derive_budget` (`texture_registry\u002Fbudget.rs`: `BUDGET_FRACTION_PERMILLE` 800 × the live `VK_EXT_memory_budget` DEVICE_LOCAL capacity − a reserve (the process's non-texture device-local bytes in use plus the static BLAS's remaining headroom under its own budget), floored at `MIN_DERIVED_BUDGET_BYTES`; `render.texture_budget_mib` overrides) and re-derived twice a second, so it shares the heap with the BLAS budget above — a pool that stops reserving the BLAS headroom, or eviction that demotes just-promoted textures inside the hysteresis window before older ones, is the regression (`dd2cd84e9`); promotions are reads on a streamer pool bounded by `MAX_READS_IN_FLIGHT`, landed by `TextureStreamer::step` — a main-thread archive read for a promotion is the regression. A flush batch lands at most one residency change per handle (a promotion read in flight plus a budget demotion planned against the same state used to both land), and a refused install retires its new image through `pending_destroy` before any descriptor points at it (#6738, `6a4c661a8`); a truncated BC DDS is refused before the floor-first and residency slices instead of panicking (#6737, `b8d89bdcb`). Cost and residency table: `docs\u002Fengine\u002Ftexture-streaming.md` §12 (resident texture bytes off → on, FO4 MedTek 766 → 136 MiB; zero deficits\u002Fchurn at settle); the `tex-stream:` bench line (`tex_stream_bench_line`) and `tex.residency` are the telemetry — quantify before filing.\n- Deferred-destroy countdown = `MAX_FRAMES_IN_FLIGHT`; freeing earlier writes in-flight GPU memory (CRITICAL). Backlog counters must be read by `rt.integrity`.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_3.md`\n\n### Dimension 4: SSBO sizing & per-frame upload\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fscene_buffer\u002F{constants,upload,buffers}.rs`, `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fmaterial.rs`, `byroredux\u002Fsrc\u002Fmaterial_translate.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fcomponents\u002Fmaterial.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fscene_buffer crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fmaterial.rs`; `ctx.scratch` on a bench cell.\n**Guard**: `gpu_instance_is_160_bytes_std430_compatible`, `gpu_instance_does_not_re_expand_with_per_material_fields`; the dirty-gate tests `{instance,indirect,light,material}_hash_tests.rs`, `per_frame_light_upload_does_not_use_siphash` (`light_history.rs`); `bone_world_slot_needs_copy` tests (`upload.rs`); `hash_gpu_material_fields_covers_every_gpu_material_field`.\n**Checklist** (sizes: memory-budget.md — cite its current total; it moved when instance SSBOs became grow-on-demand):\n- Upload cost is **O(live data)**, never O(capacity): instance SSBOs start at `INITIAL_INSTANCE_CAPACITY` and double to `MAX_INSTANCES`; eager `MAX_INSTANCES` allocation or a full-capacity memcpy of a near-empty buffer is the waste. `MAX_MATERIALS` 16 384; `MAX_INDIRECT_DRAWS` = `MAX_INSTANCES`. `GpuInstance` carries per-draw data only (layout drift: `\u002Faudit-renderer` Dim 3).\n- **Content-hash dirty gates** skip copy + flush on unchanged lights (`hash_light_upload`, which must also cover the `LightHistory::remap` table), instances (`hash_instance_slice`, `hash_previous_model_slice`), materials and indirect draws — steady state should skip. A gate that never hits (unstable sort key or material bytes, per-frame jitter in a hashed field) or is not invalidated when buffers are replaced (grow, resize) is the finding. `hash_gpu_material_fields` is one `FxHasher::write` over `GpuMaterial::as_bytes` (#4201, ~0.17 ms at 7 k draws) — check no second build\u002Fhash per draw survives (#4442). Since #5767 (`24eb7dba8`) `fold_svgf_scene_inputs` re-hashes every interned material (`svgf_material_hash`: animated UV\u002Fcolour\u002Falpha\u002Femissive\u002Fshader lanes zeroed, #6247) once per frame into the SVGF history key, beside the upload gate's `hash_material_slice` — O(unique materials), unmeasured; quantify before filing, a per-draw hash there is the regression. The key holds only discrete inputs: the clock-driven sky\u002Ffog lanes are compared against last frame and reset history on a jump only (`svgf_continuous_inputs_jumped`; #6247, `68ecd0819`, `per_frame_animated_material_lanes_do_not_rekey_history`, `continuous_sky_and_fog_reset_history_on_a_jump_not_on_drift`) — a continuous or animated lane folded back into the key leaves a parked camera at the recovery alpha floor, a quality+perf regression. The sun reaches the key a second time as `lights[0]` (`weather_system` rewrites the cell directional every exterior frame): `fold_light_rig_into_scene_key` leaves the first directional's colour and direction lanes out of the exact fold and returns them to the same jump comparison, while type, position, params, every further directional and every point\u002Fspot light stay exact (#6344, `8828dc6a5`, `a_drifting_cell_sun_does_not_rekey_the_light_rig_but_a_jump_or_other_light_does`) — a bit-exact fold of the drifting sun is the regression; the ReSTIR rig key keys on the sun direction by design (#5369).\n- Material dedup: N placements of one material → one `GpuMaterial`; report the ratio per cell (`ctx.scratch`); `MaterialTable::intern` O(1) amortized; upload O(unique) (`min(table.len(), MAX_MATERIALS)`, not `interned_count()`).\n- PBR is resolved ONCE at import (`Material::resolve_pbr`); the draw loop must not call `classify_pbr_keyword` (`\u002Faudit-nifal` Dim 1).\n- The moved-surface ID list (`RESTIR_MAX_MOVED_SURFACES` 64, one ID per moving draw entity — every animated skinned part counts, so ~10 animated NPCs overflow it) warns once per overflow episode and re-arms under the cap (`overflow_warns_once_per_episode_and_rearms_under_the_cap`; submitted\u002Fkept counts on `rt.integrity`, #6493 `e778320f8`, issue open for the cap itself) — a per-frame overflow warn is the regression; sizing the cap is the open question. The list is a persistent `ScratchBuffers` scratch (taken, cleared and restored inside `build_and_upload_instances`, a `ctx.scratch` row, shrunk at frame end), pushed once per moved draw and sorted + deduplicated once by `finish_moved_surface_ids` before upload (also makes the over-cap truncation keep the same IDs every frame), with the uncapped unique count still reaching `upload_moved_surface_ids` for the overflow counts (#6485, `59e376a90`) — a fresh `Vec` per build or a `contains`-then-`push` per draw (O(movers²)) is the regression.\n- Bone-world upload is O(dirty slots): `upload_bone_worlds` takes `dirty_slot_offsets` from `pose_dirty` and stages `vk::BufferCopy` only for changed slots (`bone_world_slot_states`); a full-range copy is the regression.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_4.md`\n\n### Dimension 5: GPU pipeline & pass efficiency\n**Paths**: the inventory table — `context\u002F{draw,geometry_pass,post_passes,dispatch_skin_and_cluster}.rs`, `crates\u002Frenderer\u002Fshaders\u002F`, `vulkan\u002F{volumetrics,bloom,svgf,shadow_filter,taa,composite,ssao,sky_cube,groundcover,groundcover_models,exposure_meter}.rs`, `vulkan\u002Fsky_cube\u002Fcloud_shadow.rs`; `docs\u002Faudits\u002FPERFORMANCE_FIX_STATUS_2026-09-26.md` records which perf issues are implemented-but-unmeasured.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fshaders crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext`; read `gpu_ms:` on a control bench and diff against ROADMAP.\n**Checklist**:\n- Every pass is O(pixels) \u002F O(froxels) \u002F fixed, never O(meshes). Froxels are resolution-derived (`froxel_extent`; `VolumetricsConfig::default` in `upscaling.rs`), and per-froxel ray count is gated (sun term on `sunTermLive`, local rays skipped at zero scattering, rim probes above tier 0, known-empty transport slots skip history work); `filter_fog_volumes_for_grid` culls distant emitters before dispatch. Combustion light-moment atomics target host-visible memory over PCIe, but #5950 (closed not-planned, code unchanged) measured that traffic as free: subgroup-aggregating the global atomics ~32× left `volumetrics_inject_ms` at 0.243 ms on `--combustion-lab`, while stubbing `accumulateCombustionLightMoment` saved ~0.06 ms — its arithmetic (four `froxel_to_world` cell-volume reconstructions + `pow`\u002F`exp` per luminous froxel, precomputable per slice), not the PCIe atomics. Do not re-file the atomics; a profile showing that quadrature is the lead. The combustion local grid (`volumetrics\u002Flocal_grid.rs`, #6531 \u002F #6533, plan `docs\u002Fengine\u002Ffire-volumetrics-plan.md`) is bounded, not O(scene): at most `LOCAL_GRID_MAX_BOXES` boxes of `LOCAL_GRID_DIM`³ cells, only for transport emitters within `LOCAL_GRID_REACH_METERS` (hysteresis 1.25×; farther fires stay on the froxels), with occupancy bricks (`LOCAL_GRID_BRICK`) letting the composite march skip empty space and a baked species phase table (`combustion_phase_bake.comp`, run once) instead of per-sample `pow` lobes — a per-frame phase evaluation, a box per emitter past the cap, or a sim dispatch on a frame with no live box is the regression. Bloom is a pure O(pixels) pyramid (2×2-box downsample + in-place apply). SVGF = 1 temporal + 3 à-trous dispatches under one bracket, which also holds the direct-shadow filter's own nested `shadow_filter_ms` bracket (~0.35 ms on Whiterun TAA; #5959, open, also carries an untraced +1.4 ms `main_render_ms` Whiterun reading inside ~0.7 ms per-launch noise, and whether to accept the filter's cost).\n- The sky-cube bake is a fixed per-frame cost that also runs in interiors that never sample it, and ground-cover scatter traces the TLAS per candidate: quantify with `sky_cube_ms` \u002F `groundcover_scatter_ms` before proposing a gate. Measured 2026-10-21 (#6316, closed by `c7b3f605e`; bracket added in `994620123`; RTX 4070 Ti): `sky_cube_ms` 0.21-0.23 ms with its nested `cloud_shadow_ms` 0.034 ms, interior and exterior alike, so an interior cloud-shadow gate saves at most ~0.03 ms (a gate interacts with the `exterior_sky_tint.w` ready flag — `\u002Faudit-renderer` Dim 2).\n- Terrain parallax (`terrainParallaxDisplaceUV` in `triangle.frag`, #6197, `b81a43443`) is a 6–20 step view-ray march inside the main pass, near-camera only (range 20 m default, faded from half of it; settings ride `GpuTerrainTile`); measured at defaults -0.04 ms mean `main_render_ms` over 20 area x pose rows (inside noise), \u003C= +1.0 ms at the slider maxima — quantify with `terrain.parallax` A\u002FB before filing.\n- TLAS rebuild-vs-refit frequency; a missing AS build→read barrier is HIGH.\n- G-buffer bandwidth: 8 colour attachments × 2 FIF; under `--upscaler taa` the reactive mask is sampled by TAA (#4944) but the T&C mask is written unsampled (known cost). Opaque draws that allow early fragment tests go through `pipeline_early` (`triangle_early.frag.spv`); eligibility admits material kinds 0..=`MATERIAL_KIND_MAX_LIGHTING_SHADER` (16, #5057; `early_fragment_kinds_have_no_discard_or_depth_write_path`) — a draw losing that eligibility pays late-Z shading.\n- Disney ALU is in `include\u002Fpbr.glsl` — lobes must not run for fragments that never reach them. #5249's transmission shadow trace (up to `MAX_TRANSMISSION_SELF_SKIPS` 8 self-skips, plus the glass leg of the remaining segment since #5455\u002F#5565) is not governed by the ray tier, but #5401 measured it: a pinned-tier A\u002FB with the trace gated off moved `gpu_main_render` by at most ~3 % on FO4 InstituteConcourse\u002FMedTekResearch01 and Skyrim WhiterunBanneredMare — inside noise, no change made. Re-open only with a worst-case view (large on-screen share of SOFT_LIGHTING\u002FBACK_LIGHTING\u002FTRANSLUCENCY materials, light behind) and the same A\u002FB. Legacy WRS arrays exist only with `ENABLE_LEGACY_WRS` (shipped 0; `NUM_RESERVOIRS` applies only then) — a shipped `triangle.frag.spv` \u002F `triangle_early.frag.spv` built with it on taxes every frame (`scripts\u002Fcheck-shader-artifacts.sh` rebuilds both). `inv_vp` is computed once on the CPU (UBO); a shader-side per-invocation `inverse()` is the regression.\n- Depth-history copy runs only when `scene_has_effect_soft_material`; an every-frame copy is the regression. A perf \"win\" that is only an adaptive-ray-tier drop is not a win (bench discipline).\n- Cold blend-variant compile is the multi-second stall: the pipeline cache must keep persisting when variants are created (`save_pipeline_cache_if_grown`).\n- **Speculative-Vulkan caveat**: render-pass\u002Fbarrier\u002Fpipeline findings invisible to `cargo test` need RenderDoc evidence or a revert plan — state confidence.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_5.md`\n\n### Dimension 6: Skinning & BLAS cost\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fskin_compute.rs`, `shaders\u002F{skin_palette,skin_vertices}.comp`, `acceleration\u002Fblas_skinned.rs`, `context\u002F{skinned_blas_refit,dispatch_skin_and_cluster}.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fskin_slot_pool.rs` (`pose_dirty`, `try_mark_pose_dirty`, `clear_pose_dirty`), `byroredux\u002Fsrc\u002Frender\u002Fskinned.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fskin_compute.rs crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002Fskinned_blas_refit.rs crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fskin_slot_pool.rs`; `skin.coverage` + `skin_*_ms` quantify every dispatch-count claim.\n**Guard**: bin `skin_dispatch_ran_rollback_scope_tests` (`app_frame.rs`), `palette_dispatch_uses_the_dirty_plan_and_rearms_late_bind_inverses` (`dispatch_skin_and_cluster.rs`), `a_reused_plan_scratch_keeps_capacity_and_drops_the_previous_plan` (`skin_compute.rs`), `skinned_blas_stays_fx_hashed`.\n**Checklist (landed fixes — do not re-propose)**:\n- The palette multiply is its own pass and dispatches only dirty slot runs (`plan_palette_dispatch`); a dense full-range dispatch every frame is the regression. `bind_inverses` is persistent, uploaded once at first sight (per-frame upload O(first-sight entities)).\n- Dispatch-dirty gate: skip when the bone-pose hash (FNV-1a over the bone-world slice) is unchanged; `pose_dirty` is an `FxHashSet` on `SkinSlotPool`; the gate must never skip before `SkinSlot.has_populated_output` flips.\n- BLAS refit gate: `refit_skinned_blas` skips on `built_this_frame` or (`has_populated_output && !is_dirty && has_skinned_blas`); refit dominates, rebuild only on bone-count change or after `SKINNED_BLAS_REFIT_THRESHOLD` (600) + `SKINNED_BLAS_REFIT_JITTER` (60) via `skinned_blas_refit_limit(entity_id)` — a flat shared threshold makes every entity rebuild the same frame. `SKINNED_BLAS_FLAGS` is `FAST_BUILD` on purpose (measured; memory-budget.md).\n- Steady state writes 0 descriptors (`SkinSlot.descriptor_bindings[frame]` match skips `vkUpdateDescriptorSets`); a bailed `draw_frame` rolls back the pose-hash commit and requeues first-sight `bind_inverses` (`skin_dispatch_ran`, `bind_inverse_upload_failed`, `app_frame.rs`); morph deltas are shared per mesh (`morph_delta_cache`); `MorphSlot` eviction drains outside the `skin_compute` + `accel_manager` guard.\n- Known ceiling, quantify first: all skinned builds\u002Frefits share one scratch and serialize (`skin.coverage`, `gpu_skin_blas_refit_ms`).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_6.md`\n\n### Dimension 7: World streaming, cell transitions & parse cost\n**Paths**: `byroredux\u002Fsrc\u002Fstreaming\u002F`, `byroredux\u002Fsrc\u002F{streaming_helpers,app_step,loading_screen}.rs`, `byroredux\u002Fsrc\u002Fenv_translate\u002F`, `byroredux\u002Fsrc\u002Fcell_loader\u002F{unload,transition,load,load_order,created,exterior,exterior\u002F{apply_job,persistent,worldspace},work_budget,precombined,nif_import_registry,partial,water,reference_state,legacy_lod_index,lod_bands,lod_support}.rs`, `byroredux\u002Fsrc\u002Fcell_loader\u002Freferences\u002Fattach.rs`, `byroredux\u002Fsrc\u002Fscene\u002Fworld_setup.rs` (per-frame `apply_cell_weather` \u002F `apply_cell_region_ambient`), `byroredux\u002Fsrc\u002Fasset_provider\u002Ftexture_prefetch.rs`, `byroredux\u002Fsrc\u002Fnpc_spawn\u002F` + `byroredux\u002Fsrc\u002Fnpc_spawn\u002Fresumable\u002F` (cooperative per-part actor assembly), `crates\u002Fsfmaterial\u002Fsrc\u002Freader.rs`, `crates\u002Fnif\u002Fsrc\u002F{stream.rs,import\u002F,blocks\u002F}`, `crates\u002Fplugin\u002Fsrc\u002Fesm\u002Frecords\u002F{parse,index}.rs` (`index.rs`: the load-order fold, `merge_from`).\n**First step**: `git log --since=… --format='%h %s' -- byroredux\u002Fsrc\u002Fstreaming byroredux\u002Fsrc\u002Fcell_loader byroredux\u002Fsrc\u002Fscene\u002Fworld_setup.rs crates\u002Fnif\u002Fsrc\u002Fstream.rs crates\u002Fplugin\u002Fsrc\u002Fesm`; the `cpu_ms:` split classifies a stall (Dim 8).\n**Guard**: `byroredux\u002Fsrc\u002Fstreaming_tests.rs`; NIF dhat bounds (`crates\u002Fnif\u002Ftests\u002Fheap_allocation_bounds*.rs`, a sequential `harness = false` main since #5050); mid-life equip and corpse appearance share one `AppearanceProviders` archive set (#5061) — a loader opening its own archives on the main thread is the regression.\n**Checklist**:\n- Boundary-cross stall. `pre_parse_cell` runs each fresh NIF \u002F FO4 precombine as a pool task that extracts its own input (`pre_parse_one`; archive reads are lock-free positional reads) after the coordinator admits it against `STREAM_PARSE_INPUT_BYTES` (64 MiB) using the archive-declared size (`mesh_declared_size`) — a serial extract on the coordinator, or allocating ahead of admission, is the regression; serial fast path below `PRE_PARSE_RAYON_MIN` (8). FO4 precombines are CSG-decoded on the worker (`decode_precombine_csg`), so `PrecombinedSpawnJob` only spawns; the material merge is *not* on the worker — `merge_precombine_materials` (precombines) and `merge_external_materials` (ordinary partial imports) run on the main thread in `finish_partial_import` (`cell_loader\u002Fpartial.rs`; pre-existing, quantify before filing). Streamed NIFs' textures are prefetched on the stream pool (`PrefetchStore`, `STAGED_BYTE_CAP` 256 MiB, cleared when the cell's apply ends); main-thread texture extraction per apply slice is the telemetry to diff. The worker's cross-request `batch_keys` memo (`recv_next_batch_request`, `worker_batch_duplicate_skips`) prevents duplicate parses in a burst. NIF mesh\u002Fcollision import runs on the **worker** (`PartialNifImport`); the main-thread drain re-interns strings (`reintern_imported_meshes`) and runs the material merge above — any further import work back on the main thread is the regression.\n- Exterior apply and the interior door path are budgeted: `STREAMING_APPLY_BUDGET` seeds a `FrameTimeBudget` that `load_references_budgeted` yields against (placements, NPC sub-NIFs); `InteriorCellApplyJob` keeps the cursor across frames and cancels via `unload_cell`. Boot, save-load restore and debug loads (`load_cell_with_masters`) are unbudgeted by design. NPC spawn cost: `npc_spawn_wall` in the end-of-cell log. A door transition reuses the resident load-order parse through `SharedParseCache` (`cell_loader\u002Fload_order.rs`, keyed by plugin paths + length + mtime; #6123, `588c87bc4`, `a_second_transition_over_the_same_plugins_does_not_parse`) — a per-transition main-thread re-parse (1.5–8 s) is the regression; no game re-parses interior→exterior any more: the landscape inheritance (`needs_exterior_processing(game)`) runs on every fresh shared parse, so one parse serves both session kinds (#6591, `f9f3eb831`, `one_parse_serves_an_interior_session_and_then_an_exterior_one`: `apply_exterior_processing` is idempotent and walks only exterior cells, so the *exterior_ready* flag and `parse_record_indexes_shared`'s `exterior` parameter are gone; Oblivion, FO3\u002FFNV, Skyrim and FO4 re-parsed at the first door out before it, FO4 + DLC 2.85 s and ~1.2 GB RSS peak, #6407, `d32e2ade8`; Skyrim's Use Land Data children inherit Tamriel's landscape in that same pass, #6594, `d548def7d`) — a re-parse at that door is the regression.\n- Per-crossing costs that were once per-frame or per-rebuild (regression guards): `apply_cell_weather` (was *apply_cell_climate_override*; now resolves the cell's own `XCCM` climate, else the weather table of the regions whose polygons cover the cell, else the worldspace climate default, through `env_translate::resolve_cell_weather` with an 8 s cross-fade on change — #6725 Phase 1, `ea5417dc7`) resolves a grid cell once, success *or* failure (`WorldStreamingState::climate_override_grid`, same shape as `applied_region_ambient`; #5529, `2fd7ee270`) — a failed XCCM re-resolving plus a `warn!` per frame is the regression; LOD-water recentering reuses the projection computed once in `spawn_lod_water_plane` (carried on `LodWaterPlane`) and uploads through `upload_scene_meshes_batched` with one fence wait (#5289, `310723850`) and the rebuild itself waits for the ring apply to settle — one fence-waited upload per settled crossing, spaced by `LOD_WATER_REBUILD_INTERVAL` with a `LOD_WATER_MAX_DEFER` (4 s) starvation bound (`lod_water_rebuild_due`, #5705, `eacaaa1dc`, `lod_water_rebuilds_once_per_settled_crossing`, `lod_water_rebuild_defer_is_bounded_and_spaced` in `streaming_tests.rs`) — a rebuild per landing cell is the regression; the precombine job treats the worker's negative cache entry as terminal (`lookup_precombine_cache` → `PrecombineCacheLookup::KnownFailure`, #5522, `2ca9bc313`) — a main-thread re-parse there has no `catch_unwind`; stale streaming payloads salvage their parsed imports (#5512, `b5ae3e5cb`), queued on `WorldStreamingState::stale_salvage` and finished one import per budget unit by `salvage_one_queued_import` so the frame-budget yield check sits between imports, not after hundreds of back-to-back NIF finishes (#5715, `125a21c2b`, `queued_salvage_finishes_one_import_per_call`); `attach_vmad_scripts` decompiles each `.pex` once per script name (`DecompiledPexCache`, #5999, `f28930504`) — a per-REFR decompile is the regression; both apply jobs build `effective_absorbed_refs` once per job, not per slice (#6127, `67e724c3e`), and `pre_parse_cell` skips a STAT\u002FSCOL ref that a present precombine absorbs through that same set (`bake_absorbed_refs`; ~95% of FO4 exterior placements — a worker pre-parse of a model the cell never spawns, and the 2048-entry registry slot it takes, is the regression; a missing bake un-skips exactly its refs — #6097, `88149ae26`, `a_present_bake_absorbs_exactly_its_own_refs`; and the held-back absorbed models are parsed in a second, normally empty pass only for refs whose bake parsed with zero meshes, because the main thread skips a ref only when its bake spawned something (#5484) and a worker that never parsed those models leaves each unique one an inline extract + parse there — #6342, `f72083645`, `drawn_absorbed_refs`, `a_bake_that_exists_but_draws_nothing_does_not_absorb_its_refs`); the terrain-height cache answers a warm entry before decoding the source DDS (#6314, `aa10b9bd6`, `warm_cache_hit_does_not_decode_the_source`); the loose Data indexer walks each canonical directory once to `MAX_LOOSE_DEPTH` (32), so a symlink loop cannot multiply boot-time `read_dir` calls (#6243, `120b7df86`, `loose_tier_walks_a_symlink_loop_once`); `step_created_references` runs only while a created record is unplaced or when the record counts \u002F loaded grids \u002F interior root change (`created_work`, #6125, `56fc348b8`, `the_step_gate_changes_only_with_the_records_or_the_loaded_cells`), and `EsmCellIndex::locate_refr` answers from a lazy reverse index cleared by `merge_from` (`locate_refr_uses_a_reverse_index_that_merge_from_rebuilds`) — an every-frame created-record sweep or a linear `PlacedRef` scan is the regression. Unmeasured per-tile cost: since #6076 (`ca12e5638`) a tile outside the `PersistentCellWindow` linearly filters the worldspace persistent CELL's refs (`persistent_refs_for_tile`, ~6 k on WastelandNV) at apply and again at unload (`ensure_persistent_actor_stubs`) — quantify before filing.\n- Batched teardown: a crossing unloads its ring via `unload_cells` (one global `shrink_storages` + `shrink_blas_scratch_to_fit` after the last victim), despawning through `World::despawn_batch` → `PackedStorage::remove_entities_erased` (one sorted-merge pass, in-place swap+truncate); a per-entity `Vec::remove` loop is the quadratic regression. `detach_victims_from_surviving_parents` reads every victim's `Parent` under one query guard and tests membership by binary search (#5418, `9bbe9304e`, `detach_victims_takes_one_parent_guard_for_the_whole_sweep`) — a per-victim `world.get::\u003CParent>` is the regression. `UnloadPhaseTimings` is wired only on the `app_step.rs` batch path.\n- NIF import-cache hit rate across cells; CDB parsed **once** per archive load. Parse allocation (dhat-testable — propose bounds): bulk arrays via `read_pod_vec`, `allocate_vec` results used (`#[must_use]`), block counters via `entry().get_mut()\u002Finsert` not `or_insert(name.to_string())`, skin\u002FSSE scratches reserved up front, emitter extraction import-time only.\n- ESM parse on the first-cell path: `parse_record_indexes_in_load_order` walks each plugin (`parse_esm_with_load_order`, single-threaded: 1.3–2.0 s per vanilla master, `SeventySix.esm` 4.7 s, `Starfield.esm` 5.3 s) on the rayon pool and folds them in load order (#3813), so a whole order costs about its largest walk plus the fold (2026-09-28: FO4 + 7 DLC 3.69 → 2.85 s, Starfield 14 plugins 11.85 → 7.72 s; parse-time peak RSS + roughly the largest plugin's file size; table in `docs\u002Fengine\u002Fmemory-budget.md` \"ESM Index\"). Regressions: anything order-dependent moving into the walk (slot\u002Fremap allocation, `read_archive`, `merge_from` — #3403, #3384, #3543), a walk touching shared state, or a caller installing `StringsTableGuard` on its own thread; `load_order_parallel_tests` digests the parallel index against the inline walk (synthetic chain always, real FNV\u002FFO3\u002FSkyrim SE\u002FFO4 orders `--ignored`).\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_7.md`\n\n### Dimension 8: Telemetry & camera-relative origin cost\n**Paths**: `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fgpu_timers.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fresources\u002Fmod.rs` (`ScratchTelemetry`), `byroredux\u002Fsrc\u002Fsystems\u002F{debug,metrics}.rs`, `byroredux\u002Fsrc\u002Frender\u002Fcamera.rs`, `crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fcontext\u002F{build_and_upload_instances,draw,telemetry}.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fmetrics.rs` (`MetricsSnapshot`), `crates\u002Fdebug-protocol\u002Fsrc\u002Flib.rs` (`MetricsPayload`), `crates\u002Fdebug-server\u002Fsrc\u002Fevaluator.rs`.\n**First step**: `git log --since=… --format='%h %s' -- crates\u002Frenderer\u002Fsrc\u002Fvulkan\u002Fgpu_timers.rs byroredux\u002Fsrc\u002Fsystems\u002Fdebug.rs byroredux\u002Fsrc\u002Fsystems\u002Fmetrics.rs crates\u002Fcore\u002Fsrc\u002Fecs\u002Fmetrics.rs crates\u002Fdebug-protocol\u002Fsrc\u002Flib.rs`.\n**Checklist**:\n- GPU timers: brackets read back via `read_and_reset` into `GpuTimerSnapshot`, `MAX_FRAMES_IN_FLIGHT` behind (never stalls); readers honour the `_active` flag (skipped pass ⇒ `_ms == 0`); the documented bracket count, `QUERIES_PER_FRAME` (62) and the inventory table must equal the live ones (doc-count rot recurs); `BENCH_GPU_KEYS` (`main.rs`) must follow the bracket order (`bench_gpu_keys_match_the_reported_bracket_order`); a sum over brackets must skip nested children (#4977). `BYRO_PROFILE` adds a PIPELINE_STATISTICS pool (`opaque_fragment_invocations`).\n- `cpu_ms:` (`log_stats_system` via `cpu_breakdown`) splits the frame into `fence_wait` \u002F `acquire` \u002F `submit_present` \u002F `ssbo_build` \u002F `pipeline_compile` \u002F `parameter_upload` \u002F `fog_cluster` \u002F `post_present` \u002F `geom_rebuild` \u002F `tlas_build` \u002F `cmd_record` \u002F `rof_*` \u002F `atw_pre` \u002F `atw_scheduler` \u002F `atw_post` \u002F `between_frames` (`fog_cluster` is subtracted from `cmd_record`, #4810). Buckets **nest**, not sum: `atw_pre` \u002F `atw_scheduler` \u002F `atw_post` are sequential siblings, and `atw_post` ⊇ the whole `render_one_frame` (`rof_pre_draw` + `rof_draw_call` + `rof_post_draw`, so every `draw_frame` sub-bucket too; pinned by `atw_bracket_nesting_tests`, #4208); only `between_frames` lies outside `render_one_frame` (compositor throttle, loop sleep). Large `fence_wait` ⇒ GPU stuck on a prior submit; large `atw_scheduler` with `fence_wait≈0` ⇒ pure CPU; large `atw_post` with small `rof_*` ⇒ post-scheduler cell-load steps \u002F uploads (with large `rof_*` it is the render path); large `between_frames` alone ⇒ not the engine. Release builds for dense cells.\n- Wire parity: every `MetricsSnapshot` field reaches `MetricsPayload` — the conversion in `evaluator.rs` destructures the snapshot exhaustively, so a new core field is a compile error until it is carried, and `metrics_response_mirrors_core_snapshot` pins the values (`cpu_pass_ms` \u002F `top_systems_ms` were dropped on the wire until #6278, `05d94dd61`; both are `serde(default)`, so an older peer still parses, `wire.rs`). A telemetry field the debug CLI cannot see is a finding.\n- `ScratchTelemetry` (`ctx.scratch`): capacity vs used vs wasted for renderer scratches (including `VolumetricsPipeline`'s two, shrunk at frame end — #5952, `the_volumetrics_scratches_are_shrunk_through_the_pipeline`) and, after `renderer_row_count`, the engine's `build_render_data` scratches; diff for over-reserved scratch and for a scratch with no row.\n- Camera-relative origin: the origin snaps to the 4096-unit cell grid (`RENDER_ORIGIN_SNAP`); `assemble_camera` adds one `look_at_mat4` (glam 0.33's `math::camera::rh::view`, `c6b8d4584`) and `rebase_model_matrix` runs inside the existing O(visible-instances) loop — verify no second pass. On a grid crossing `origin_corrected_prev_view_proj` preserves TAA\u002FSVGF\u002FFSR history (#1489); dropping history per crossing is a HIGH perf+quality regression.\n**Output**: `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_8.md`\n\n## Phase 3: Merge\n\n1. Read all `\u002Ftmp\u002Faudit\u002Fperformance\u002Fdim_*.md`.\n2. Combine into `docs\u002Faudits\u002FAUDIT_PERFORMANCE_\u003CTODAY>.md`: **Executive Summary** (findings by severity; observed-vs-ROADMAP delta, not absolute FPS) · **Hot Path Analysis** (per-frame CPU + per-pass GPU cost table from `gpu_timers` \u002F `ScratchTelemetry`, with the RT quality tier stated) · **Findings** (CRITICAL first, deduplicated; eroded guards separate from new issues) · **Prioritized Fix Order** (quick wins — scratch reuse, preallocation, gate restoration — before architectural changes) · **Stale skill premises**.\n3. Remove cross-dimension duplicates.\n\n## Phase 4: Cleanup\n\n1. `rm -rf \u002Ftmp\u002Faudit\u002Fperformance` — skip when launched by `\u002Faudit-suite`, which reconciles the report against the scratch files. 2. Tell the user the report is ready. 3. Suggest `\u002Faudit-publish docs\u002Faudits\u002FAUDIT_PERFORMANCE_\u003CTODAY>.md`.\n",{"description":7,"argument-hint":38},"--focus \u003Cdimensions> --depth shallow|deep","main","72010bd15df3a93981d766140821d4fa7e494fa9",".claude\u002Fcommands\u002Faudit-performance",6,"https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli","matiaszanolli.com","15+ years turning mate into code, and just getting started! All things Python and data lover overall. Music addict, always looking to unite music and tech.","2026-11-15 04:03:52",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add matiaszanolli\u002FByroRedux --skill audit-performance",{"tool":54,"command":55},"bunx","bunx skills add matiaszanolli\u002FByroRedux --skill audit-performance",{"tool":57,"command":58},"pnpm","pnpm dlx skills add matiaszanolli\u002FByroRedux --skill audit-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.claude\u002Fcommands\u002Faudit-performance\u002FSKILL.md",true,[],[63,72,81,90,99,107],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":33},"01M6K028GPYDYZ5441BW6YDFNK","trace-flow","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Ftrace-flow\u002FSKILL.md",[],[69,70,71],"trace flow","trace","flow",{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":33},"01M6K026GTTXBBXXCH09SDRNX6","session-close","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Fsession-close\u002FSKILL.md",[],[78,79,80],"close","session close","session",{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":33},"01M6K024KA1JFTV7BGYFSZV2VV","legacy-lookup","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Flegacy-lookup\u002FSKILL.md",[],[87,88,89],"lookup","legacy lookup","Legacy",{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":33},"01M6K022H36BJ35KB6MT2NHVH6","fix-issue","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Ffix-issue\u002FSKILL.md",[],[96,97,98],"issue","fix","fix issue",{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":33},"01M6K0208JHG4WDJX143YKFF0W","audit-ui","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Faudit-ui\u002FSKILL.md",[],[105,106,20],"audit ui","ui",{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":33},"01M6K01XPHAPHF9BPS4CG5DDWX","audit-tooling","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Faudit-tooling\u002FSKILL.md",[],[20,113,114],"audit tooling","tooling"]