From f9c5f61a280658be4793240395e679093c64f794 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 13 Aug 2018 13:33:27 +0000 Subject: [PATCH] Disable vsync in case it slows stuff down Doesn't seem to disable vsync on my machine, not entirely sure though. Might warrant a closer look. --- src/Control.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Control.cpp b/src/Control.cpp index 7365623..9ae699f 100644 --- a/src/Control.cpp +++ b/src/Control.cpp @@ -31,6 +31,7 @@ Control::Control(float winW, float winH, std::string name) : screenGenerations(this) { this->window.create(sf::VideoMode(winW, winH), name); + this->window.setVerticalSyncEnabled(false); // this->targetSprite.setTexture(Control::fitness->target.getTexture()); // this->chromosomeSprite.setTexture(Control::fitness->chromosome.getTexture());