Is it better to use the same union multiple times?

Hi, so my main question for you is if I make a union for a window instead of it being parts, is it better in terms of game performance and lag to have the same union multiple times? My logic behind this is what if they’re all the same, the game only has to load in 1 asset and apply it to all of the ones that use it’s specific ID??

I’m really clueless, any help is appreciated.

Using the same union would be better then using a wide arrangement of them. To optimize the game better, I would just use parts instead of unions when making windows.

3 Likes

What you are referring to is called Instancing, and does apply to CSG Parts/Unions. In terms of performance it can be kind of tricky as parts are instanced as well, and unions can sometimes be inefficiently solved by the system still. There are some changes in parameters that will cause your union to not instance so be sure to read the “Batching efficiency” portion of the hyperlink above.

5 Likes