@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=3cleanly (0crashes,11.6 GBpeak VRAM, down1.86 GBfrom Wave 31) after Wave 31 hit a city TDR at7,131draws. - Binary inspection shows
P2andP3share 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 splitShadowBvhBufandSecondaryBvhBufpools.
Investigation Plan
- Disassemble the
bvhQuality(0..4) table and branch logic at0x145C137B0and its callers. - Document a clean comparison table of
P0,P1,P2,P3, andP4:- 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
+0x22cb1bwhenBVH=3andRT_GI=3were combined). - Per-category BVH draw radii, entity caps, and LOD biases (
Static,Dynamic,Vehicle,Tree,Grass).
- Rebuild vs. refit flags/cadence and frame budgets (
- A/B test
BVH=2vsBVH=3on identical scenes, comparingdirect_dyn_builds,direct_dyn_refits,hw_rt_cpu, GPU trace time, peak VRAM, and average FPS. - If per-category Tree/Grass/Prop BVH radii are addressable in the table, expose optional overrides in
ps5pro_rt.rsso 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_rebuiltupgrades moving dynamic meshes (rebuilt within 32 frames, up to65,536triangles and256 MiBtotal refit slab VRAM) once into double-bufferedALLOW_UPDATE(refit_blas_slab), then runs out-of-place ping-pongPERFORM_UPDATErefits. - 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
- Audit
hw_rt.rs(L3488-L3560) to check whether explicit guest full-rebuild requests (whenPERFORM_UPDATEbit0x08is clear) currently get forced into refit once a BLAS is upgraded. - Add a
refit_counttracker perBlasEntryand test a periodic fresh rebuild inside the same allocatedALLOW_UPDATEslot (zero new heap allocation, simply omitPERFORM_UPDATE) everyNrefits (e.g.,64or120refits, configurable viaVICTORY_HW_RT_REFIT_DECAY). - 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-memoryGetSettings()/applySettings()leaf cave stamps:+0x58(u32):gi_tier(1currently;2triggered a4.5sGPU submission TDR0x887A0006around frame4150in Wave 28/29)+0x74(u32):refl_tier(3)+0xA8(u32):bvh_tier(2or3)+0x138(u32):rt_dir_shadows(0)+0x13C(u32): currently labeledrt_local_shadows(3)+0x140(u8): currently labeledrt_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). Reading256at+0x140strongly indicates two packedu8bools (+0x140=0,+0x141=1), while independent binary RE flagged that+0x13Cmay be LOD-light RT shadows and+0x140local RT shadows (swapped vs. our comment labels).
Investigation Plan
- Disassemble the exact assembly readers of
Settings+0x138,+0x13C,+0x140, and+0x141inapplySettings()(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 au32to+0x140never 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 inps5pro_rt.rs.
- Confirm exact operand widths (
- Inspect the remaining fields in the Tier 2 (High) RTGI
.dataentry (0x06B4D960) beyond0x06B4D980(sr_tracing),0x06B4D9E0(blend floats), and+0xC2(dedicated refl BVH flag) to pinpoint what caused theRT_GI=2single-submission TDR around frame4150soRT_GI=2can run cleanly with zero TDRs.
4. Native PC Frame Pacing (slReflexSleep + slPCLSetMarker + Awake Guard)
Context
- Rockstar's native PC DX12 port (
GTA5_Enhanced.exe) usesStreamlineReflex and PCL (slReflexSleep,slPCLSetMarker) to cap CPU queue depth before optional DLSS Frame Gen (sl.dlss_g). - Our
victory-nextbranch shipsStreamline 2.14.16andDLSS 310.9.16(withsl.reflex,sl.pcl, andsl.dlss_gbundled), whilestreamline.rshas not wired Reflex/PCL markers yet. - Community PR
#1938(VICTORY_CARD_AWAKE) also documented a14 FPSReflex lock when Reflex runs without keeping the card awake.
Investigation Plan
- Wire opt-in
slReflexSleep+slPCLSetMarkeralongside theVICTORY_CARD_AWAKEguard instreamline.rsandhost.rsto pace CPU submissions cleanly without triggering the14 FPSlock. - Once Reflex/PCL pacing is verified with zero hangs, evaluate an opt-in
sl.dlss_gFrame Gen toggle (always OFF by default for honest native FPS benchmarks).
5. Visual & Audio Polish Backlog
- Last remaining dropped non-RT compute dispatch: Identify the single shader hash still logging
dropped 1 without a host pipelineper frame and fix its translation/PSO compile. - Cloth shading fix: Audit and port the verified cloth shading fix (
VIctory-ALFRED4954a5f) if not already present. - 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)
0crashes,0TDRs (0x887A0006),0refused PSOs,100%HW RT (0.0SW BVH), peak VRAM under the13.5 GBDXGI cap with live OBS active.- Exact before/after telemetry logged (
fps,prep,copy,hw_rt_cpu,direct_dyn_buildsvs.direct_dyn_refits,vram) plus x64 disassembly receipts for Items 1 and 3.