You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
360 B
28 lines
360 B
#pragma once
|
|
#include "Pub_Sub.h"
|
|
|
|
class FrameWatcher : public VrEventPublisher{
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
};
|