Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/Ticker.h |
Include |
#include "Containers/Ticker.h" |
Source |
/Engine/Source/Runtime/Core/Private/Containers/Ticker.cpp |
void Tick
(
float DeltaTime
)
Fire all tickers who have passed their delay and reschedule the ones that return true
Note: This reschedule has timer skew, meaning we always wait a full Delay period after each invocation even if we missed the last interval by a bit. For instance, setting a delay of 0.1 seconds will not necessarily fire the delegate 10 times per second, depending on the Tick() rate. What this DOES guarantee is that a delegate will never be called MORE FREQUENTLY than the Delay interval, regardless of how far we miss the scheduled interval.
Parameter |
Description |
---|---|
DeltaTime |
time that has passed since the last tick call |