Performance with many many sprites

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Performance with many many sprites

Postby Custodian » Mon Mar 08, 2021 7:44 pm

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
-P
User avatar
Custodian
 
Joined: 29 Jan 2021
Github ID: disasteroftheuniverse
Graphics Processor: ATI/AMD (Modern GZDoom)

Return to Mapping

Who is online

Users browsing this forum: No registered users and 0 guests