gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Vsync

#25846 - whodoo - Sun Aug 29, 2004 3:33 pm

Just a question. When my VSyn function ends, does the gba wait an amount of time before it repaints the screen? Or does it start to repaint it immediately? Cause if it does, mabye it starts refreshing the screen before I?ve had time to update the backgrounds/OAM?

#25848 - tepples - Sun Aug 29, 2004 3:48 pm

GBA calls your vsync function at the start of vblank, and it always waits 68 scanlines (each of 1232 cycles) after the vblank starts to start drawing the next frame.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.