Khuzadrepa wrote...
I also agree that from a resource perspective, it's definitely way more efficient to only have it executing where players are.
Sixes, are you doing yours on heartbeat, or doing it from a pseudo?
My assumption was that he was doing that from the module heartbeat. If you're only going to use one for everything modwide, you definitely want it in a heartbeat, because it'll have to run continuously. It'll mean wasted code when no one is an an area that needs special treatment, but not all that much (any exterior area has weather, after all, if we look at sixs' usage). That IS one disadvantage of doing it this way, as opposed to area-based pseudos, but a reletively minor one. By contrast, using a pseudoheartbeat instead of the mod heartbeat would chew up roughly 5 times the cpu, because it would have to run constantly, and because pseudos chew up roughly 5 times the cpu, based on some benchmarking I did a number of years ago (I'd link the old forum post if I could). You only want to use them when the psuedo in question will only be running 20% of uptime or less. Obviously, that's going to vary from script to script - I just use it as a rule of thumb.
Funky
Modifié par FunkySwerve, 24 juin 2011 - 04:01 .