Unions for performance?

Are unions better for performance? No effect? Make things worse? Should I be unionizing a bunch or not?

1 Like

Hey. Depends on what you’re unionizing.
Union two parts which are created in a Roblox is always better performance-wise, because this will make two parts as one mesh. How graphics rendering works is based on “draw calls.”
Draw calls are instructions from CPU to GPU to render something. You’re probably expecting what this could mean. This means that 2 parts are 2 draw calls, but 2 parts union is actually only 1 draw call.
Other performance-wise benefit is if you union two parts which are connected together visibly, Roblox will optimize this mesh, and remove redundant vertices.

Example:


Take a look onto the roof of this building. The roof is built from multiple parts which are unioned. This process will optimize roof into one mesh and removes redundant vertices, this optimization is visible if you take look inside the roof.

The vertices from the wider part are removed and makes this mesh render effective. (This exact example is not fully optimized yet. As an example it’s alright.)

Obviously there are some disadvantages, for example the impossibility to move individual parts due to the union.

So I’d recommend if you’re working on a complex model, backup the original mesh and union all parts which are good candidate for union and ship it in your game, to save some rendering performance.

5 Likes

Super informative and quick to the point perfect reply thanks man

This should be enough.

2 Likes

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