Lazy Loading

Last modified: 12 January 2025

You may have multiple actors in the world that may require their own Ability System Component. However, having multiple instances of the ASC can be heavy, potentially leading to performance issues. Lazy Loading can help alleviating that problem.

The default actor provided by Ninja GAS, NinjaGASActor, supports this design pattern, allowing you to define for each actor type the initialization mode for the Ability System Component:

  • Lazy: The Ability System Component is only initialized when used for the first time. This is the default setting for NinjaGASActor blueprints.

  • Eager: The Ability System Component is initialized as soon as possible.