Performance tips

Basicly all i want to say are two tips

  • instead of casting on every fire notify (or any other frequent action) it is most of the times better to store bp_gun as variable on begin play. And this goes to most of previous frequent actions.
  • instead of using regular tick unless something is REALLY on regular tick (like physics or animations) for aiming and shooting booleans it may be better to connect timers on begin play with lets say 0.1 loop execution interval. If game is played on 60 fps it would be 6 times performance improvement.

Privacy & Terms