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

Optimization

Although there are several tools available that we can use to figure out where our performance issues lie, it is still up to us to fix or change the code. Some of that comes down to proper programming techniques. A few things we can do to make sure our game's frame rate doesn't suffer are as follows:

  • Keep Tick code to a minimum: Blueprint objects that use too much code in a Tick can have a devastating impact on performance, since Ticks run every frame. Gameplay code is mostly event-driven, so take advantage of that.
  • Let the engine do the heavy lifting: If we have an object that needs to know if any players were within a certain distance, we could check those distances in a Tick or some quick timer, but this would be inefficient. Adding a sphere collision component to the Blueprint and using the On Actor Begin Overlap event would be much simpler and cleaner...
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