Interrupts and VBlank
Posted: Thu Aug 20, 2009 10:10 am
I just started programming for the DS recently and am in need of some assistance.
I have been googling and searching the forums and I can't seem to find any recent/up-to-date source on how interrupts and swiWaitForVblank() works in libnds. There are no examples included specifically related to interrupts, and I can't seem to figure it out through experimentation.
For instance, is putting swiWaitForVblank() ; at the end of my game loop good enough to make it wait for a vblank, or do I need to do something more? I can't seem to figure out what the various irq functions are for, and can't find an easy to understand reference. I'm new to this, so please go easy on my ignorance :)
Oh, also: Do I need to use the 'combined' template to utilize touch functionality? I have been using it and it works fine, but I'm not sure if it's necessary/the most efficient way.
Thanks!
I have been googling and searching the forums and I can't seem to find any recent/up-to-date source on how interrupts and swiWaitForVblank() works in libnds. There are no examples included specifically related to interrupts, and I can't seem to figure it out through experimentation.
For instance, is putting swiWaitForVblank() ; at the end of my game loop good enough to make it wait for a vblank, or do I need to do something more? I can't seem to figure out what the various irq functions are for, and can't find an easy to understand reference. I'm new to this, so please go easy on my ignorance :)
Oh, also: Do I need to use the 'combined' template to utilize touch functionality? I have been using it and it works fine, but I'm not sure if it's necessary/the most efficient way.
Thanks!