Reader small image

You're reading from  Enhancing Virtual Reality Experiences with Unity 2022

Product typeBook
Published inNov 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781804619537
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Steven Antonio Christian
Steven Antonio Christian
author image
Steven Antonio Christian

Steven Christian is an Augmented Reality Developer, Animator, and Medical Student Student. He's also the Owner of Iltopia Studios where he creates comics and cartoons that explore the Black experience in America. He is Unity Certified 3D Artist and Instructor and his goal is to improve equity in arts and technology through content creation and community-focused education.
Read more about Steven Antonio Christian

Right arrow

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:

  1. Combine meshes using Blender or Maya to reduce the amount of faces to render for each asset:
    1. In Blender, select all objects you want to combine and press Ctrl + J. The last object selected will be the new origin.
    2. In Maya, select all objects and go to Mesh | Combine.
    3. 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.

  1. Share materials among different GOs to achieve good batching. This reduces the number of unique instances and allows for more efficient use of resources.
  2. Use a single material with a texture for coloring different parts of an object...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Enhancing Virtual Reality Experiences with Unity 2022
Published in: Nov 2023Publisher: PacktISBN-13: 9781804619537

Author (1)

author image
Steven Antonio Christian

Steven Christian is an Augmented Reality Developer, Animator, and Medical Student Student. He's also the Owner of Iltopia Studios where he creates comics and cartoons that explore the Black experience in America. He is Unity Certified 3D Artist and Instructor and his goal is to improve equity in arts and technology through content creation and community-focused education.
Read more about Steven Antonio Christian