Does modeling something improve performance?

I had a build that was causing a little bit of lag. It was a big castle and it was all just loose parts in the workspace. I modeled it together and for some reason the lag was reduced. Am I crazy or is it actually beneficial for performance to model things together? If so how?

Do you mean model or do you mean union? I mean, is the castle a UnionOperation or a Model? If you mean Model, it’s probably rendering precision + StreamingEnabled. If it’s a UnionOperation, it’s because it removes all inner faces (similar to Minecraft).

1 Like

I mean just modeling. I dont think streaming enabled plays a part since I am directly inside the castle.
I was told turning something into a union is worse for performance.

I’m pretty sure it depends on the complexity of the parts, how many hidden faces there are, and what you set the collision to.

Example:
Union a brick to a sphere. Notice its geometry isn’t so good. Try instead negating that partfrom the sphere and placing a duplicate (non-negative) in that space. Performance will be better than just normal.

Example 2:
A union of a high density voxel bush will be better performance than if thevoxels aren’t unioned, especially if it isn’t hollow. Setting collision to box would make it even better!

Example 3:
Create a detailed shelf without many hidden faces and set it to PreciseConvexDecomposition. Congratulations, your performance is now significantly worse!

1 Like

So this can be a complex topic if you go in depth of the technical side of things but to keep it straight and simple, this have to do with something calls “Draw Calls”. A draw call is when the CPU tells the graphics API (GPU) what to draw and how to draw it. Each draw call contains all the information the graphics API needs to draw on the screen, such as information about textures, shaders. When you model things together, there is less draw call to be made between CPU and GPU resulting in a smoother performance. Alternatively, when you model and folder things up in your studio, your studio will run more smoothly due to not having to render all the things in the explorer menu. I hope this answer your question well, ask me more if you interest about optimization topic!

2 Likes

What about batch rendering? That exists!

1 Like

Yes, you can achieve batch rendering with meshes and modeling your parts in a way can also be consider as batch rendering.

1 Like

Wow this is the perfect solution thank you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.