To support determinism in Three.js Water Pro, I had to switch to a fixed 60 Hz update rate for the wave sim.
An unintended side effect of this is the average FPS has increased by a few % since I'm now doing less work on average when FPS > 60, since some frames skip the wave sim.
Overall, the next version should see a 15-20% improvement in performance thanks to some other optimizations I made! 🔥
显示更多