~10 FPS from moving some oct stuff to const, ~0.5 fps from adding a few more consts to initializers in the kernel

This commit is contained in:
MitchellHansen
2017-10-07 21:32:22 -07:00
parent 58ef1da02a
commit c5c65474d6
8 changed files with 159 additions and 71 deletions

27
include/FrameWatcher.h Normal file
View File

@@ -0,0 +1,27 @@
#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;
};