UE5

Five Skills You Must Avoid in Unreal Blueprints - Delay, Get All Actors of Class

게임 개발 2024. 6. 2. 17:19

Five programming skills, 
why are they so bad in BP

Do you know 5 bad programming in bp?

They are Cast To, Event Tick, Bind Event, Delay and Get All Actors Of Class.

 

  1. Cast To
  2. Event Tick
  3. Delay
  4. Get All Actors of Class
  5. Bind Event

 


Delay

In this post, we are going to learn how the Delay BP can affect your game's performance and gamepaly flow.

 

Delay nodes essentially pause the execution of your blueprint for a set amount of time.

This can disrupt the natural flow of the game and cause frame rate drops.

Delay nodes can cause inconsistencies between 

players due to different frame rates and network latency.

 

So, This can lead to unfair gameplay or unintended behaviors.

In ohter words, Delay node is bad and you should never use is.

 

What we can use instead is custom events and timers.

 

 


Get All Actors of Class

 

In a simple words,

when the game starts, this node is going to go through all the actors in your leve.

 

 

Imagine you have 5000 or even more actors in your game.

it means that this node will go through all of these actors,

and it will definitely slow down your game and decrease frame rates or possibly crash.