What is SPARSE Delegate?

The SPARSE Delegate is defined for the Custom Event in the PrimitiveComponent.h file.

DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_OneParam

How does the SPARSE Delegate differ from other delegates, such as

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam?

?

3 Likes

it’s a memory optimisation for delegates that are almost never bound
delegate only cost 1byte of memory if not bound, but when bound the data is not stored on the object, so it’s “slower” ( so you may not wan’t to use it as default for everything )

9 Likes