C# Class Nez.Time

provides frame timing information
显示文件 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
altDeltaTime float
altTimeScale float
deltaTime float
frameCount uint
time float
timeScale float
timeSinceSceneLoad float
unscaledDeltaTime float

Private Methods

Method Description
checkEvery ( float interval ) : bool
sceneChanged ( ) : void
update ( float dt ) : void

Property Details

altDeltaTime public_oe static_oe property

secondary deltaTime for use when you need to scale two different deltas simultaneously
public static float altDeltaTime
return float

altTimeScale public_oe static_oe property

time scale of altDeltaTime
public static float altTimeScale
return float

deltaTime public_oe static_oe property

delta time from the previous frame to the current, scaled by timeScale
public static float deltaTime
return float

frameCount public_oe static_oe property

total number of frames that have passed
public static uint frameCount
return uint

time public_oe static_oe property

total time the game has been running
public static float time
return float

timeScale public_oe static_oe property

time scale of deltaTime
public static float timeScale
return float

timeSinceSceneLoad public_oe static_oe property

total time since the Scene was loaded
public static float timeSinceSceneLoad
return float

unscaledDeltaTime public_oe static_oe property

unscaled version of deltaTime. Not affected by timeScale
public static float unscaledDeltaTime
return float