Skip to Content
Game Development Patterns with Unreal Engine 5
book

Game Development Patterns with Unreal Engine 5

by Stuart Butler, Tom Oliver
January 2024
Intermediate to advanced content levelIntermediate to advanced
254 pages
6h 13m
English
Packt Publishing
Content preview from Game Development Patterns with Unreal Engine 5

5

Forgetting Tick

In this chapter we are going to explore the topic of tick (an event or process that is called every frame), why using it can cause frame-rate issues for our game projects, and two approaches to building systems without using tick, reducing the impact of systems on the CPU. We will consider the example of a guard tower in an RTS game, with a searchlight rotating back and forth. If the player’s unit is seen by the searchlight, it will stop its rotation. We will start with the Update pattern introduced in the previous chapter and iteratively improve from there, reducing our reliance on the Update pattern by using Timers, Timelines, and event-driven solutions instead. At each step, we will measure code efficiency, using execution ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Multiplayer Game Development with Unreal Engine 5

Multiplayer Game Development with Unreal Engine 5

Marco Secchi

Publisher Resources

ISBN: 9781803243252Supplemental Content