I just want to know if Parts or MeshParts are generally better to use when considering static, anchored objects the player will be walking on and interacting with. I’m trying to reduce my part count for better performance and I know using MeshParts can be a good way to do this but not in every scenario.
Though I’m not 100% sure, my educated guess would be just parts, but it really shouldn’t effect too much either way depending on what you’re doing. Especially if the game isn’t insanely large and mesh poly counts are optimized, you shouldn’t have to worry too much about performance- though its a good habit!
If your roblox experience would try to look modern, MeshParts is a good options. If you want your game to look retro in some way, RegularParts is another option. Hope this helps!
I’m just asking which is better for performance
If I have say a model with 50 parts and I convert it into a singular mesh, would doing this throughout the game make a noticeable difference?
Hi, mesh is more flexible optimized for complex models and part is for things more simpler in geometry like a wall. So if you need complex then mesh, simple then part. Hope this help.
To your question, the answer is both. Parts and MeshParts cannot replace one another as they serve different purposes.
Parts: simple geometry
MeshParts: complex geometry
By default, use parts. Use MeshParts when necessary.
Respectfully, you didn’t answer my question
I am 100% fully aware that parts are for simple geometry and MeshParts for complex geometry. That’s not what I am asking. I am asking if 50 or so individual parts or one MeshPart is better for performance
Same model same everything except one is a model with a lot of parts the other is one MeshPart
Imagine I make a detailed tree using parts. Would it be better for performance if I converted the whole thing into a MeshPart?
As I said, use MeshParts if the geometry is complex. If you have a model with 1000 parts, use MeshParts. If you have a model with 10 parts, you would probably be better off using just parts. To your specific question of “50 parts,” it’s up to you to decide which is preferable. There will not be any significant performance improvements with using one over the other.
A tree would be considered a complex model. So mesh. Also using 1 mesh instead of 100 parts also helps with the draw calls that CPU have to make to the GPU. Also don’t “convert” parts into mesh, you will not get any benefit of mesh doing so.
I believe it comes down to tri-counts, right? So if 50 parts becomes more expensive to draw than if you had just used a singular mesh, don’t use parts. However if meshes are the more expensive choice, use parts.
The only way to really test it is to try both ways and compare the results. If you don’t feel like doing that, parts will likely work fine. Just remember to disable things like CastShadow etc for smaller, unimportant parts.