doing vsync just before render enhances animation

This commit is contained in:
wgroeneveld 2018-12-15 12:24:51 +01:00
parent e690007190
commit 5e1b40cf4b
1 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,6 @@ GBAEngine::GBAEngine() {
}
void GBAEngine::update() {
vsync();
if(sceneToTransitionTo) {
currentEffectForTransition->update();
@ -130,6 +128,7 @@ void GBAEngine::update() {
updateSpritesInScene();
}
vsync();
spriteManager.render();
}