In a normal game loop, we do something like this:
Code: Select all
while(1) {
update();
draw();
swap(); // waits for vblank
}
Would it make sense to instead use draw() as a vblank interrupt handler, in order to get asynchronous behavior without threads which have their own overhead?