i know already general idea that meshpart instead of tons of parts is better
but at the same time having alot of different mesh ids is not the best
so whats the solution?
example:
say you build a building and its ceiling is made of 5-15 parts
and you want to have more of that building including the ceilings
would you turn each of the buildings ceiling into mesh even tho they can be different IDS but very low trigs?
covert 5-15 parts to meshParts?
if the meshparts have low trigs then convert parts to mesh
it’s actually not as simple as you would imagine, often turning a simple multi part object into a mesh will result in more triangles than before, but it really depends. parts will update shadows and stuff faster since the engine knows it’s dealing with a base shape represented with simple math (as far as i know but i could be wrong, the physics engine treats balls as perfectly round despite not looking like it)
More often than not unless you’re actually going beyond just bunching them up as one mesh and going through the effort of optimizing the mesh (removing faces that will never be seen, getting rid of unnecessary vertices/faces, etc…) it’s actually better to use the engine’s built-in parts because of the very fact that they are a primitive mesh.
A raw part will more than likely have a ton of special optimizations embedded into the engine for itself because there’s a ton of assumptions they can make about it.
interesting points
but wouldnt it be better to have one mesh [one instance aka] with shadows on instead of several parts that have shadow on?
in both cases collision is set to off
I’d assume it simply wouldn’t matter whether or not you did in terms of lighting performance. If that could cause a significant enough performance impact then every game on Roblox would have severe issues because a majority primarily make use of lots of parts and not meshes.
but the built in part in studio is technically a sort of mesh too
having alot of parts with shadow can affect [collision off so at least this will save peRformance]
so its alot of confusion
The built-in part, while yes being a mesh, because it has a shape that is guaranteed to always remain the same, allows the engine to make a lot of assumptions about it because it only needs to account for that one singular shape which results in better performance.
i said often, which means not all the time in case you didn’t know. I’ve optimized a lot of models and not all of them came out with less triangles than before, for example optimize 2 cubes that are intersecting into a mesh with one having been being moved (1,1,1) from the other cube and it will have more tris
For large, flat surfaces, use Roblox parts. For anything else, meshes. Combine similar meshes (same color/material) where possible. That’s my recommendation after digging deep into performance optimization.
If all 5-15 parts of the ceiling are unique colors and materials, but each part is a simple shape (say, a rectangle or a triangle, nothing special), then stick with parts.
If all 5-15 parts of the ceiling are unique colors and materials, but each part is a complex shape (say, an L-shape or a hollow cylinder), then use individual meshes for every part.
If some of the 5-15 parts of the ceiling share a color and material, combine the similar parts into one mesh, regardless of them being a simple or complex shape.
Parts are best used for singular simple shapes. As soon as there are similar parts or complex shapes thrown into the mix, use meshes.