Optimizing draw calls
One critical aspect of optimizing VR applications is reducing draw calls, which are commands sent to the GPU to render a mesh. The number of draw calls can quickly add up and have a significant impact on performance.
To optimize draw calls in your VR experience, follow these steps:
- Combine meshes using Blender or Maya to reduce the amount of faces to render for each asset:
- In Blender, select all objects you want to combine and press Ctrl + J. The last object selected will be the new origin.
- In Maya, select all objects and go to Mesh | Combine.
- Save the combined mesh as a separate file for easy editing later on.
Note
This step is only helpful for performance when the combined meshes share the same material.
- Share materials among different GOs to achieve good batching. This reduces the number of unique instances and allows for more efficient use of resources.
- Use a single material with a texture for coloring different parts of an object...