So i've been toying with compute shader's to handle particle control and have run into an issue. Everything is working fine so far but there's a bottleneck. When I get up into the hundreds of thousands of particles it starts to lag, I haven't implemented other post processing effects on the particles such as blur and what have you so I'm concerned that there might be a serious performance problem later down the road.
I'll attach the script, shader, and compute shader. I haven't done much optimization yet and i'm not sure how to properly use compute shaders so any advice you guys can give me would be greatly appreciated. Thanks.
I just checked and it gets about 40-50 fps with 500k particles.
Part Controller Shader
Part Controller Compute Shader