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:
parent
ef5929a851
commit
f9c5f61a28
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ Control::Control(float winW, float winH, std::string name) :
|
||||||
screenGenerations(this)
|
screenGenerations(this)
|
||||||
{
|
{
|
||||||
this->window.create(sf::VideoMode(winW, winH), name);
|
this->window.create(sf::VideoMode(winW, winH), name);
|
||||||
|
this->window.setVerticalSyncEnabled(false);
|
||||||
|
|
||||||
// this->targetSprite.setTexture(Control::fitness->target.getTexture());
|
// this->targetSprite.setTexture(Control::fitness->target.getTexture());
|
||||||
// this->chromosomeSprite.setTexture(Control::fitness->chromosome.getTexture());
|
// this->chromosomeSprite.setTexture(Control::fitness->chromosome.getTexture());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue