Lets talk about a few things

Lets say i have a single mesh that adds up to 10k triangles, and 50 parts that add up to 10k triangles.
Is one better than the other in terms of performance? Also what if i did this with all of my mesh? So for example instead of importing each piece of a house (Stairs, walls, floors), i just import it as a single mesh. So in the end it will be the same amount of triangles but with fewer total parts in the game. Any advantage to this?

So in shorter terms, is it better to have less parts in a game even though it can still possibly add up to the same amount of triangles as some who has 75-100k parts in there game?

2 Likes

I dont know the answer but i do know that less parts means less physics, which means better performance. Even if they are anchored, less parts means less shadows from light, which means better performance. If you disable all shadows, less parts means less physical space being occupied, which usually means better performance. My basic intuition tells me less parts are better, even with same triangles, but i am not sure technically, so lets see what others think.

That’s kind of what i was thinking. Less parts just always seems like the best way to go. I’m working on an open world game and I’ve seen people say there games has over 100k parts which sounds crazy to me. 100k just seems like such a high amount that is not needed. The only downside to importing things as a single mesh is textures. Each mesh will have it’s own texture but even then that has to be better than a lot of parts i feel like.

1 Like

a single mesh due to it rlly having to generate physics once not 50 times and hitbox only once not 50 times meaning it will have to load less of everything

1 Like

Going over what has already been said in this topic: multiple parts is generally not really viable at all for making anything. A mesh, even if it has to be loaded in the game, is much more optimized for most games. Take unions for example. A union of a skull actually has more issues than if you just made it via a mesh. Each part has to load in and then properly union. Meaning all the parts of the union are still there, meaning lag.

It was previously stated as well but: physics is annoying due to it’s optimization. 100k parts over 1k meshes. It’s pretty much a pick your poison. But regardless: choose your battles! If you want to have super realistic trees and buildings, go for it. Do note that it comes at a cost. Either in reduced performance or a reduced map size/reduced quality in other areas.

For what you are specifically saying though: no. Collisions in roblox are kinda a pain to work with, mesh wise. So I would just separate it into the essentials. Stairs, Wall1, Wall2, Door1, Window1, so on so forth. You will know it is more optimized than 5x the parts for a single object!