-
Notifications
You must be signed in to change notification settings - Fork 0
LoopStatus
Gabriel Galli edited this page Feb 26, 2019
·
3 revisions
lasso::LoopStatus
holds the state of the game loop that lasso::MainLoop runs.
It has the following public member variables:
-
int fps
, which holds the FPS count smoothed byMainLoop::fps_smoothing
; -
duration time_frame
, which is how long the last frame took to run (time_curr - time_prev
) and is used to advancetime_simulation_available
; -
duration time_total_elapsed
, which accumulates the total elapsed time since the loop started; -
duration time_total_simulated
, which accumulates inMainLoop::delta
steps the time spent simulating since the loop started (that is, not the real time); -
duration time_simulation_available
, which holds the time that has accumulated and is still available to simulate since the last simulation (thelag
from Game Programming Patterns); -
clock::time_point time_curr
, the point in time that the current frame started; -
clock::time_point time_prev
, the point in time that the previous frame started.