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.

ASM > Vsync / VBlanks

#29613 - ozahid - Mon Nov 22, 2004 4:48 pm

I have had issues with Vsyncing for the past few days. The function for doing so simply consisted of waiting for the VDraw to end, and right afterwards waiting for a VBlank to finish. Now, I do have a little bug in the small program I have been coding, and I am pretty sure the bug is causes by the VSync function not working properly.

Without getting into too much detail, maybe someone can answer this for me. When programming in ARM, is it better to program a VSync the way I just described, or is it better to simply use an interrupt? SWI 0x05 ?
_________________
http://people.umass.edu/ozahid

#29614 - ozahid - Mon Nov 22, 2004 4:56 pm

I think I am going to answer my own question.

It is better to use the VBlank interrupt since it does essentially the same thing, but also saves power!

For more information, check this thread out: http://forum.gbadev.org/viewtopic.php?t=3704
_________________
http://people.umass.edu/ozahid