Fix VSync, Fix Mouse Input (Yay!), Add MAXFPS env

This commit is contained in:
2021-01-13 19:40:11 +01:00
parent 0370a2e871
commit 37542ab831
6 changed files with 31 additions and 19 deletions

View File

@@ -24,6 +24,8 @@ public:
static ShaderProgram* getShaderProgramByName(std::vector<ShaderProgram*> shaderPrograms, const char *name);
static void error_callback(int error, const char *description);
void setMaxFps(uint16_t fps);
private:
void limit_framerate();
@@ -46,7 +48,7 @@ private:
Menu *menu;
const uint16_t MAX_FPS = 60;
uint16_t MAX_FPS = 60;
double deltaTime;
float exposure = 1.0f;