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
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.)
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…
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.