Question on performance with large amount of parts + connections

I’m spawning in a few thousand parts (on the client, over a period of time) and I want to know a few things on the performance of it all. These parts all have their own Touched and TouchEnded functions connected to them. When you touch the them, they get deleted, and I clear the connection. My first query is, would it be better to have a single connection on the player, instead of on each trash (if that makes a difference) and are there any tips of spawning tons of parts without FPS drops.

At max, I spawn 3,800 parts. Once all 3,800 parts have spawned, FPS sits at 60, but as they are spawning it, it can drop all the way down to 10-15FPS, making the game near impossible to play

Porting the connections to the character’s limbs would definitely be more performant than having thousands of individual connections.

1 Like