How would I reduce the lag of this game?

Hello!
I am currently making a game that consists of many 5x5 stud of blocks. These blocks can range from 15-200 by 25-200. You can also build buildings and trees and rocks randomly generate. like a tower defense game. Each map is generated randomly so I want to stick with the same system. When a lot of blocks are currently in the map it gets too laggy. PleaseHelp!

pictures:

1 Like

Maybe you should try to union some of the blocks. If the hitbox is distorted then you can change the CollisonFidelity to PreciseConvexDecomposition. I hope this helps.

2 Likes

I will try to union all the cyan sea because those are borders.

1 Like

You shouldn’t try to union things unless you’re sure it’s creating a positive effect on lag.

Next up, the issue is most definitely your trees and rocks. You can fix the lag by making lower-detailed rocks and leaves or disabling all their collisions.

1 Like