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.
This commit is contained in:
Joscha 2018-08-13 13:33:27 +00:00
parent ef5929a851
commit f9c5f61a28

View file

@ -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());