Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Oculus Rift Development

You're reading from   Mastering Oculus Rift Development The next frontier of gaming and simulation

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781786461155
Length 306 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Jack Donovan Jack Donovan
Author Profile Icon Jack Donovan
Jack Donovan
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Exploring a New Reality with the Oculus Rift FREE CHAPTER 2. Stepping into Virtual Reality 3. Improving Performance and Avoiding Discomfort 4. Interacting with Virtual Worlds 5. Establishing Presence 6. Adding Depth and Intuition to a User Interface 7. Hearing and Believing with 3D Audio 8. Adding Tone and Realism with Graphics 9. Bringing Players Together in VR 10. Publishing on the Oculus Store

Using the Unity profiler

The Unity3D engine comes with a full-featured profiler that's a great tool for dissecting everything that it's doing behind the scenes every frame. In this section, we'll write some functions that tax the processor and track them in the Unity profiler.

Create a new Unity project called PerformanceSandbox. Save a scene called main.unity in a new folder called Scenes. Next, create a folder called Scripts and create a new C# script in it named StressTestSystem. When you're done, your Project window should look something like the following screenshot:

Using the Unity profiler

Now is a good time to add the Profiler window to your Editor layout. Select Profiler from the Window menu on the toolbar at the top of the editor. Add the window as a new tab next to the Scene window. It's a good idea to keep the Profiler window in a place where you can see it at the same time as your Game view, so you can see what Unity is rendering while you analyze it.

Tip

You can quickly open...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime