I have a weather system in my game that I recently converted from utilizing area to client.screen (recommended by a fellow dev)-- because I'm a stickler for detail, I have a raindrop splash effect that I want to appear on random turfs all over the map while it's raining. I know HOW to code it, but the problem is that "for looping" over all of the turfs in the world causes visible lag. I tried to relegate it to just show up on 1 type of tile and still the same result. The only other way I can think of doing it is to create a bunch of screen objects at random screen_locs but that just seems so...yuck. I like clean, efficient code.
Is there a better way that won't cause overhead?
Copyright © 2022 BYOND Software. All rights reserved.