![]() |
ezEngine
Release 25.03
|
Base class for all time step smoothing algorithms. More...
#include <Clock.h>
Public Member Functions | |
virtual ezTime | GetSmoothedTimeStep (ezTime rawTimeStep, const ezClock *pClock)=0 |
The function to override to implement time step smoothing. More... | |
virtual void | Reset (const ezClock *pClock)=0 |
Called when ezClock::Reset(), ezClock::Load() or ezClock::SetPaused(true) was called. More... | |
Base class for all time step smoothing algorithms.
By deriving from this class you can implement your own algorithms for time step smoothing. Then just set an instance of that class on one of the clocks and it will be applied to the time step.
|
pure virtual |
The function to override to implement time step smoothing.
RawTimeStep | The actual raw time difference since the last clock update without any modification. |
pClock | The clock that calls this time step smoother. Can be used to look up the clock speed and min/max time step. |
Implemented in ezDefaultTimeStepSmoothing.
|
pure virtual |
Called when ezClock::Reset(), ezClock::Load() or ezClock::SetPaused(true) was called.
pClock | The clock that is calling this function. |
Implemented in ezDefaultTimeStepSmoothing.