-
Notifications
You must be signed in to change notification settings - Fork 0
MainLoop
Gabriel Galli edited this page Feb 26, 2019
·
3 revisions
lasso::MainLoop
is the class that controls the game loop.
Its constructor has two optional parameters:
-
unsigned int simulations_per_second
, which determines how many timessimulate()
may be called in a second by setting the fixed simulation delta time (defaults to 30); -
float fps_smoothing
, which determines how aggressively FPS count changes should be smoothed (between 0.0 and 1.0, defaults to 0.75).
duration const delta
is the public member variable that holds the fixed
simulation delta time set with simulations_per_second
.