Unity performance optimization – occlusion

1. The meaning of Occlusion Culling-Occlusion Culling: Game objects that are not in Camear’s field of view are not rendered Render (by default, Unity will render all GameObjects, regardless of whether Camear can see them), for example Below:

Share a picture< /p>

2. The use is relatively simple, and the effect is immediate

(1) Configure the game object:

share picture

(2) “window” menu->Rendering->Occulision Culling,

p>

(3) Tab item “Object”, select “All”

Share picture

(4) Switch to the Bake menu and use the default parameters directly. After “Bake” (baking), Bake data is generated (this data is very small );

share picture

(5) Run the game and you can observe in the “Scene” window that objects that are not within the scope of the Camera will not be rendered.

Leave a Comment

Your email address will not be published.