Can MeshParts cause FPS hitching on lower end devices?

Hi, so I had my friend test my game out, and he told me he was getting about 20 FPS. This was a bit of a surprise, as I haven’t had much hitching when I would playtest it. One thing that came to me was the fact the floor for the level was created using a ton of MeshParts. However, their CanCollide property is set to false, and I use a simple rectangle collider to act as the base for the level.

I wasn’t sure though if the rendering of these MeshParts can be quite expensive. Any help is appreciated, thanks :slight_smile:

2 Likes

Unions, Semi-transparent parts, Meshes, very much affect performance, that’s why I always go into the properties and set it to “Automatic” or “Performance” so it helps a bit. (You can do the same with models as well.)

1 Like

I was really excited to try this, although Roblox is preventing me from doing so. There are a lot of tiles and MeshParts for each floor, so I wrote up some code to easily set the render type of these tiles without hassle. But of course, Roblox prevents scripts from setting this property directly…

:roll_eyes:

1 Like

Try lowering the edge and vertices count. It might lower the quality of your assets in general, but it helps with performance greatly.

1 Like

That’s good advice. Upon further inspection, I had over 5k mesh part tiles that had a lot of polygons. Easily fixed the problem by using an image instead of a meshpart hexagon grid thing, helped a lot.

:joy: