Hey so I was just wondering what is the best system for optimizing tweens?
Basically I am making an obby with power ups, there are a lot of them and they tween to hover up and down while rotating. I have 3 options
Just tween them all constantly
Run a constant loop checking for nearby powerups, only nearby ones get tweened properly. (using getpartboundsinradius from the player in a constant loop with all powerups whitelisted)
Same as 2 except instead of getpartboundsinradius I just run a for i,v loop on every single powerup and do a magnitude check.
Have a maze game that can put out at times 300+ coins, all doing a repeating tween.
Never had a problem with it. MazeMaster (if you want to check it) This is over a very large area also.
Yeah should be fine, just make sure you’re using tags so you dont have to repeat the code to every powerup and also that the hovering is running on the client not the server.
That is the same conclusion I came to after testing. I figured I’d need something like what you were talking about. But, testing showed my frames were doing just fine. Good Luck!