Page 1 of 1

Performance with many many sprites

PostPosted: Mon Mar 08, 2021 7:44 pm
by Custodian
I have created some sprites to add the look of rainfall to one of my maps:

Click to see animation

I would like this effect to appear anywhere there is a sky texture on this map. So far, I've been placing my rain sprites manually and haven't had any performance issues, but I likely have a more capable PC than most. I anticipate there may be performance problems for people with lower-spec pcs and as I add more detail to this map.

How can I ensure the best performance with lots of rain sprites? Is there some kind of LOD option available for sprites, or distance culling? (I don't really need to render these if they aren't seen, obviously.) I am using DECORATE for my sprites (for now at least, I found ZScript to be a bit intimidating).

Would it improve performance any if I added some logic to my rain sprites to only render them f they are a certain distance away from the player, or would that add more performance considerations?

Thanks in advance