Thinking about doing a simple scheduling system next. Perhaps tick tied to the step_size?

This commit is contained in:
MitchellHansen
2017-09-28 22:11:14 -07:00
parent a280005bd9
commit 4d6cecc7e0
5 changed files with 149 additions and 92 deletions

26
include/FrameWatcher.h Normal file
View File

@@ -0,0 +1,26 @@
class FrameWatcher {
public:
FrameWatcher();
~FrameWatcher();
void do_tick();
private:
float get_elapsed_time();
float step_size = 0.0166f;
double frame_time = 0.0;
double elapsed_time = 0.0;
double delta_time = 0.0;
double accumulator_time = 0.0;
double current_time = 0.0;
};