Why Rapier 0.21 broke an 18-story glass tower (and adding Apple XDR)
Upgrading @dimforge/rapier3d-compat from 0.14.0 to 0.21.0 during a toolchain modernization pass silently wrecked the tower's structural physics. My T1–T6 Vitest physical tolerance suite caught the regression immediately: Rapier 0.15+ replaced velocity PGS (erp) with the TGS Soft regularized contact solver, which pushed 18-row stack sag from < 0.15 mm to 0.388 mm (T1 failure) and spiked transient contact impulses enough that 1.2 g micro-splinters triggered chain-reaction false shatters (4 intact survivors in an asymmetric collapse vs the >= 15 gate). I reverted and pinned Rapier at ^0.14.0 while upgrading the rest of the repo to Node 24, Vite 8 Rolldown, and TypeScript 7, and built a hardware Metal optical bench (scripts/optical-bench.mjs) that reads back linear Float32 HDR buffers. In the same pass, I split the post-processor into dual swapchain pipelines: rgba16float with toneMapping: { mode: 'extended' } for specular glints above SDR white on Apple Silicon XDR displays, paired with automatic SDR fallback via matchMedia('(dynamic-range: high)').