Maxim Zaks
1 min readOct 15, 2020

--

Hi Matt.

My script runs over the definition of component structs in your project and tries to figure out if the layout is optimal, or there might be a better layout by reordering the fields or defining the enum definition to be of 1byte size and not of 4 byte size as it is the default in C#.

That sad, my script can be wrong some times. So it is always good to check for yourself, when my script shows a possible inefficient layout.

The component definitions you mentioned in your response:

SceneLoadRequest, PhysicsStep, CollisionWorldProxy, HybridChunkInfo and RequestSceneLoaded 

Are provided by Unity as far as I know. So in this case you can’t do anything about it yourself. I would recommend to use my tool on your own component in order to check if the layout can be improved.

--

--

Maxim Zaks
Maxim Zaks

Written by Maxim Zaks

Tells computers how to waste electricity. Hopefully in efficient, or at least useful way.

No responses yet