High CPU Usage

Author: Nou-rCreated Sep 8, 2022Updated Sep 5, 2023

Hello—fantastic sim. I'm having difficulty implementing it on a React site and maintaining the same level of performance as your demo at https://paveldogreat.github.io/WebGL-Fluid-Simulation/.

On Firefox I'm getting ~75% CPU usage with your demo, however with the exact same script I'm seeing almost double the CPU usage on my website. Do you have any idea where I could begin to debug this or how yours is so optimized?

Much appreciated.

Source: PavelDoGreat/WebGL-Fluid-Simulation