API.Service.Time - JuDelCo/Core GitHub Wiki
Namespace: Ju.Services
ITimeService
This service provides time related info and manages the time scale of the game.
float TimeScale;
float Time;
float FixedTime;
float DeltaTime;
float DeltaTimeSmooth;
float FixedDeltaTime;
float UnscaledTime;
float UnscaledFixedTime;
float UnscaledDeltaTime;
float UnscaledDeltaTimeSmooth;
float UnscaledFixedDeltaTime;
uint FrameCount;
void SetTimeScale(float timeScale);
TimeScale
The scale at which time passes (x1 being normal speed, x0.5 half, etc). Will affect to all the time variables except the unscaled ones.
Time
Scaled time in seconds since the start of the first Update call. Returns FixedTime when in FixedUpdate.
FixedTime
Scaled time in seconds since the start of the first FixedUpdate call.
DeltaTime
Scaled last frame time in seconds. Returns FixedDeltaTime when in FixedUpdate.
DeltaTimeSmooth
Smoothed out version of DeltaTime using the last 10 frames. Returns FixedDeltaTime when in FixedUpdate.
FixedDeltaTime
Scaled last fixed frame time in seconds.
UnscaledTime
Unscaled time in seconds since the start of the first Update call. Returns UnscaledFixedTime when in FixedUpdate.
UnscaledFixedTime
Unscaled time in seconds since the start of the first FixedUpdate call.
UnscaledDeltaTime
Unscaled last frame time in seconds. Returns UnscaledFixedDeltaTime when in FixedUpdate.
UnscaledDeltaTimeSmooth
Smoothed out version of UnscaledDeltaTime using the last 10 frames. Returns UnscaledFixedDeltaTime when in FixedUpdate.
UnscaledFixedDeltaTime
Unscaled last fixed frame time in seconds.
FrameCount
Total number of frames that have been rendered (calls to Update).