Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4 Game Development Quick Start Guide

You're reading from   Unreal Engine 4 Game Development Quick Start Guide Programming professional 3D games with Unreal Engine 4

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789950687
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rachel Cordone Rachel Cordone
Author Profile Icon Rachel Cordone
Rachel Cordone
Arrow right icon
View More author details
Toc

The Profiler

By using the Profiler, we can create a recording of the game's performance as it's running, and then take a look at the stats to see how long it's taking our code to run.

To test this, we're going to need to purposely make some terrible code:

  1. Open the ThirdPersonCharacter Blueprint
  2. In the Event Graph, create the Tick event
  3. Create a ForLoop and connect it to the Tick event
  4. In the ForLoop, set the Last Index to 10000
  5. Create a new integer variable and name it TestInt
  6. Create a SET variable for TestInt and connect it to the Loop Body and Index outputs of the ForLoop

The code should look like this:

This is some horribly unoptimized code—and is perfect for our needs. Let's create the profile for our game.

Under the Play button's drop-down menu, make sure that the Number of Players is set to 1 if it was still set to 2 for our multiplayer...

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
Banner background image