doing vsync just before render enhances animation
This commit is contained in:
parent
e690007190
commit
5e1b40cf4b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue