

This increases build time, runtime memory usage and storage space, but can improve runtime performance. Use lightmapping to “bake” (pre-compute) lighting and shadows where appropriate.You can reduce the number of times that Unity renders each object.More info See in Glossary so that more distant objects fall outside its frustum, or, for a more fine-grained approach, putting objects into separate layers and setting up per-layer cull distances with Camera.layerCullDistances. The output is either drawn to the screen or captured as a texture. More info See in Glossary to prevent Unity from drawing objects that are hidden behind other objects, reducing the far clip plane of a Camera A component which creates an image of a particular viewpoint in your scene. Consider using occlusion culling A that disables rendering of objects when they are not currently seen by the camera because they are obscured (occluded) by other objects. Perform more rigorous culling, so that Unity draws fewer objects.More info See in Glossary to create the effect of distant geometry. More info See in Glossary: for example, use a skybox A special type of Material used to represent skies.

In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. Think of each unique Scene file as a unique level.

Consider reducing the overall number of objects in the scene A Scene contains the environments and menus of your game.You can reduce the number of objects that Unity renders.If this is the case, consider these options: Rendering commands include draw calls (commands to draw geometry), and commands to change the settings on the GPU before drawing the geometry. Usually, the greatest contributor to CPU rendering time is the cost of sending rendering commands to the GPU. If you are not yet familiar with this subject, read the article before following any of the advice on this page. The following article on the Unity Learn site is a comprehensive introduction to graphics performance, and contains information on identifying and fixing problems: Fixing performance problems. Strategies for fixing these problems are quite different, so it’s important to understand where your problem is before taking any action. Additionally, rendering-related performance problems can occur on the CPU or the GPU. If you attempt to solve a performance problem before you understand its cause, you might waste your time or make the problem worse. Before you begin: locate and understand the problemīefore you make any changes, you must profile your application to identify the cause of the problem. This page contains some simple guidelines for optimzing rendering performance in your application.
