Rain Perfomance Issues

Godot Version

4.4.1.stable.mono

Question

I added rain to my game, and it causes perfomance issues on the phones. How can I optimize it?

I don’t think a 1000 particles is unreasonable but if it is causing issues in your game perhaps approach the rain differently.

You could achieve a rain effect using other methods perhaps? There are rain shader examples around if you search. Or perhaps a large rain sprite duplicated and moved across the screen at different angles or spacing might work too (you may get away with just two copies). Or using the draw node to draw some rain lines and move that.

Some examples with a quick search:

Hope that helps in some way.

1 Like

Well, I I looked a little more, and it turned out that even 32 firefly particles on another scene are causing the same problem. I agree that even 1000 particles shouldn’t cause problems, but I can’t figure out why then. I’m not sure how valuable this information is. But my phone doesn’t heat up at all, but the game is very laggy. It seems that the problem is not that the phone does not have enough power.

I don’t know if this will help but have you tried turning of the fixed FPS and perhaps setting the pre-process back to 0. Does that help?

Edit And the same for fractional delta and even interpolate. For your rain affect I shouldn’t imagine either of these matter too much.