![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TimeStep.h>
Public Member Functions | |
| virtual | ~ITimeStep () |
| virtual void | Reset () |
| virtual void | Update ()=0 |
| virtual float | GetCalculatedDt () const =0 |
| virtual float | GetActualDt () const |
| virtual void | SetTarget (float InTarget) |
| virtual float | GetTarget () const |
|
inlinevirtual |
Get how much time actually passed (Dt and any sleeps) mainly for stats. By default will just return Dt
Get the next dt to use in simulation
Called to retrieve the target time for the timestep. By default returns whatever the Dt was intended to be
Reset the timestep to a default state. Called on restarting a simulation. Note we will not update till after an evolution so GetDt must succeed beore we call the first Update
Called to set a target dt if necessary - derived timesteps can ignore if not needed
Perform any necessary update to calculate the next timestep, if any sleeps for synchronisation are required also perform them here