[SOLVED] When should static be set to true on a render component?

Hi All,

When should the static property be set to true on a render component for best optimization? I’m guessing it should only be set to true if the entity’s transform never changes? If yes, does this apply to the entity’s parents too? For example, the transform of the entity with the render component may never be programmatically changed but it’s parent’s transform may so I’m wondering if, in that case, is the static flag still providing an optimization?


It should be only set if the mesh does not move at all in the world … which includes moving it by changing the parent’s transform.

Using static as long as the transform never changes is a good rule of thumb. Anecdotally, I’ve had issues with renders not appearing when batching render components that have the static flag checked. I keep the static flag unchecked if the render is inside a non-dynamic batch group. If you’re not batching, then this won’t be an issue.

This issue was discussed in a GitHub Issue.

Thank you both for the replies! :slightly_smiling_face:

1 Like