Too many parts causing game to lag

Ok, so me and my buddies are making a game, and I won’t reveal too much of it. However, there’s an issue we’ve ran into when creating the map. I ran a quick script in the command line and found that the game had over 50k parts! This worked fine on my PC, but on my laptop, the game lagged super badly. I tried using blender to download the parts and group them as one singular mesh, and even wrote a script to separate each part by color, but when I imported the meshes back into roblox, everything looked like jelly, with random triangles appearing and the blocky parts just turning all smooth like clay. I eventually gave up and to try to reduce the lag, I enabled Streaming in the workspace, but it still lagged pretty badly on other devices, so if you have any fixes about blender meshes looking weird or reducing lag in games from too many parts I would greatly appreciate it if you let me know!

Are you sure it’s the Parts causing the lag?
Sure, 50,000 Parts in a small area will cause issues, but spread across an area a few hundred studs wide shouldn’t cause issues.
Does the game lag when you pan the camera across the 50,000 Parts?
Do you have scripts, a lot of Humanoids, or a lot of Constraints in the game.

A Mesh of 50,000 Parts won’t make the game less laggy since you’re already using the same amount of triangle faces either way.
Also there’s a limit of how many Tris you can put in a Mesh. If you exceed that number Roblox will just decimate the mesh to make it have a lower number, which is what sounds like has happened to you.

I have a place with 43,500 Parts, 22.5 million voxels of Terrain, lots of lights and 3400 Constraints and it doesn’t lag my computer or 4 year old phone at all. I imagine it may lag a lower end device though.

Ah thanks, I realized I had many scripts with while True loops, which ran at the same time and was probably the reason for the lag.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.