@opengrip | Rockstar/RAGE RT, BVH Profiles & Native PC Engineering Audit (Post-Wave 32)

By @opengrip | Live Roadmap: https://rentry.co/opengrip-gtavi | NVIDIA RT Cores Guide: https://rentry.co/opengrip-nvidia-rt

Shared technical audit checklist covering our next five Rockstar/RAGE-specific DXR, BVH, and PC frame-pacing investigations after Wave 32 (BVH=3 running clean, 0 crashes, 0 errors, 11.6 GB peak VRAM, 3.38 ms HW RT CPU).


1. Rockstar's 5 BVH Profiles (P0..P4): P2 vs P3 Rebuild/Refit & Per-Category Radii

Context

  • Wave 32 stabilized BVH=3 cleanly (0 crashes, 11.6 GB peak VRAM, down 1.86 GB from Wave 31) after Wave 31 hit a city TDR at 7,131 draws.
  • Binary inspection shows P2 and P3 share the same nominal RT visual tier while changing rebuild vs. refit behavior (fresh BVH builds cost more build time per frame but keep tight AABBs for fast RT traversal; in-place refits cut per-frame build work but stretch AABBs over time).
  • In Rockstar's native PC DX12 port (GTA5_Enhanced.exe), RAGE exposes per-category BVH radii and density caps (Static, Dynamic, Vehicle, HDVehicle, Tree, Grass) alongside split ShadowBvhBuf and SecondaryBvhBuf pools.

Investigation Plan

  1. Disassemble the bvhQuality (0..4) table and branch logic at 0x145C137B0 and its callers.
  2. Document a clean comparison table of P0, P1, P2, P3, and P4:
    • Rebuild vs. refit flags/cadence and frame budgets (PERFORM_UPDATE, PREFER_FAST_BUILD, PREFER_FAST_TRACE, ALLOW_UPDATE).
    • Internal BVH memory pool size caps (explaining the guest OOM assert at +0x22cb1b when BVH=3 and RT_GI=3 were combined).
    • Per-category BVH draw radii, entity caps, and LOD biases (Static, Dynamic, Vehicle, Tree, Grass).
  3. A/B test BVH=2 vs BVH=3 on identical scenes, comparing direct_dyn_builds, direct_dyn_refits, hw_rt_cpu, GPU trace time, peak VRAM, and average FPS.
  4. If per-category Tree/Grass/Prop BVH radii are addressable in the table, expose optional overrides in ps5pro_rt.rs so Ultra buildings and vehicles stay sharp in RT while heavy foliage/grass BVH overhead stays lean.

2. Refit AABB Degradation Guard (hw_rt.rs)

Context

  • In hw_rt.rs (L3488-L3515), frequently_rebuilt upgrades moving dynamic meshes (rebuilt within 32 frames, up to 65,536 triangles and 256 MiB total refit slab VRAM) once into double-buffered ALLOW_UPDATE (refit_blas_slab), then runs out-of-place ping-pong PERFORM_UPDATE refits.
  • Under heavy refit profiles like P3, persistent moving characters and vehicles can stay in refit mode indefinitely, gradually stretching bounding boxes and increasing hardware box intersection cost during dense city scenes.

Investigation Plan

  1. Audit hw_rt.rs (L3488-L3560) to check whether explicit guest full-rebuild requests (when PERFORM_UPDATE bit 0x08 is clear) currently get forced into refit once a BLAS is upgraded.
  2. Add a refit_count tracker per BlasEntry and test a periodic fresh rebuild inside the same allocated ALLOW_UPDATE slot (zero new heap allocation, simply omit PERFORM_UPDATE) every N refits (e.g., 64 or 120 refits, configurable via VICTORY_HW_RT_REFIT_DECAY).
  3. Measure GPU RT traversal time in heavy city/crowd scenes to confirm whether tightening stretched AABBs reduces GPU trace time without raising hw_rt_cpu (3.38 ms).

3. Verify Settings+0x13C / +0x140 / +0x141 & Isolate RT_GI=2 TDR

Context

  • In ps5pro_rt.rs (L141-L158), our in-memory GetSettings() / applySettings() leaf cave stamps:
    • +0x58 (u32): gi_tier (1 currently; 2 triggered a 4.5s GPU submission TDR 0x887A0006 around frame 4150 in Wave 28/29)
    • +0x74 (u32): refl_tier (3)
    • +0xA8 (u32): bvh_tier (2 or 3)
    • +0x138 (u32): rt_dir_shadows (0)
    • +0x13C (u32): currently labeled rt_local_shadows (3)
    • +0x140 (u8): currently labeled rt_lod_shadows (1)
    • +0x141 (u8): rtDynamicShadows (1)
  • Stock Series X reads Refl(+0x74)=0, BVH(+0xA8)=2, Dir(+0x138)=0, +0x13C=0, and +0x140=256 (0x0100). Reading 256 at +0x140 strongly indicates two packed u8 bools (+0x140=0, +0x141=1), while independent binary RE flagged that +0x13C may be LOD-light RT shadows and +0x140 local RT shadows (swapped vs. our comment labels).

Investigation Plan

  1. Disassemble the exact assembly readers of Settings+0x138, +0x13C, +0x140, and +0x141 in applySettings() (0x022434A0) and downstream RT pass dispatchers:
    • Confirm exact operand widths (mov eax, [reg+0x13C] vs. movzx eax, byte ptr [reg+0x140] / [reg+0x141]) so writing a u32 to +0x140 never accidentally zeroes +0x141.
    • Map which exact compute passes (CS_TraceShadowRays_*, CS_RTShadowTrace32TemporalHQ_*, CS_RTDistantLODLightShadow) read +0x13C, +0x140, and +0x141, then align all labels and env vars in ps5pro_rt.rs.
  2. Inspect the remaining fields in the Tier 2 (High) RTGI .data entry (0x06B4D960) beyond 0x06B4D980 (sr_tracing), 0x06B4D9E0 (blend floats), and +0xC2 (dedicated refl BVH flag) to pinpoint what caused the RT_GI=2 single-submission TDR around frame 4150 so RT_GI=2 can run cleanly with zero TDRs.

4. Native PC Frame Pacing (slReflexSleep + slPCLSetMarker + Awake Guard)

Context

  • Rockstar's native PC DX12 port (GTA5_Enhanced.exe) uses Streamline Reflex and PCL (slReflexSleep, slPCLSetMarker) to cap CPU queue depth before optional DLSS Frame Gen (sl.dlss_g).
  • Our victory-next branch ships Streamline 2.14.16 and DLSS 310.9.16 (with sl.reflex, sl.pcl, and sl.dlss_g bundled), while streamline.rs has not wired Reflex/PCL markers yet.
  • Community PR #1938 (VICTORY_CARD_AWAKE) also documented a 14 FPS Reflex lock when Reflex runs without keeping the card awake.

Investigation Plan

  1. Wire opt-in slReflexSleep + slPCLSetMarker alongside the VICTORY_CARD_AWAKE guard in streamline.rs and host.rs to pace CPU submissions cleanly without triggering the 14 FPS lock.
  2. Once Reflex/PCL pacing is verified with zero hangs, evaluate an opt-in sl.dlss_g Frame Gen toggle (always OFF by default for honest native FPS benchmarks).

5. Visual & Audio Polish Backlog

  1. Last remaining dropped non-RT compute dispatch: Identify the single shader hash still logging dropped 1 without a host pipeline per frame and fix its translation/PSO compile.
  2. Cloth shading fix: Audit and port the verified cloth shading fix (VIctory-ALFRED 4954a5f) if not already present.
  3. In-world DSP audio convolution (VICTORY_DSP_CONVOLVE): Port 1024-frame DSP audio convolution to restore TVs, phone calls, in-world radio, and room reverb cleanly without stalling audio threads.

Verification Gate (Required for Every Item)

  • 0 crashes, 0 TDRs (0x887A0006), 0 refused PSOs, 100% HW RT (0.0 SW BVH), peak VRAM under the 13.5 GB DXGI cap with live OBS active.
  • Exact before/after telemetry logged (fps, prep, copy, hw_rt_cpu, direct_dyn_builds vs. direct_dyn_refits, vram) plus x64 disassembly receipts for Items 1 and 3.
Edit

Pub: 29 Nov 2026 22:24 UTC

Views: 235