#22676 - Wriggler - Sat Jun 26, 2004 7:33 pm
Hi there,
I'm learning basic GBA programming with a bloke at work, and we're going through the tutorials in our own time and occassionally meeting up and comparing notes.
However, yesterday he told me that the GBA has 4 internal timers. Is that right? Why would you need four? What's the difference between them?
He mentioned how it was quite tough to sync your code to a timer so it runs at a constant frame rate. To which I replied, why can't you just watch what the VSync is doing and base your game timings from that? To my understanding, the vsync is all done by hardware and it doesn't wait for your code to finish whatever it's doing before it starts drawing the next frame...
I'm sure there's a really good reason, but why does the GBA need these timers when it's got the VSync in memory which constantly updates itself (or does it)?
Cheers for the help, apologies if it's a newbish question but I am infact, a newb... :)
Ben
I'm learning basic GBA programming with a bloke at work, and we're going through the tutorials in our own time and occassionally meeting up and comparing notes.
However, yesterday he told me that the GBA has 4 internal timers. Is that right? Why would you need four? What's the difference between them?
He mentioned how it was quite tough to sync your code to a timer so it runs at a constant frame rate. To which I replied, why can't you just watch what the VSync is doing and base your game timings from that? To my understanding, the vsync is all done by hardware and it doesn't wait for your code to finish whatever it's doing before it starts drawing the next frame...
I'm sure there's a really good reason, but why does the GBA need these timers when it's got the VSync in memory which constantly updates itself (or does it)?
Cheers for the help, apologies if it's a newbish question but I am infact, a newb... :)
Ben