#62830 - Dannon - Tue Dec 06, 2005 7:56 am
When I run swiWaitForVBlank() my code stopped.
I added:
and now it kind of works, but the screen flickers alot
--Dannon
Code: |
int main(void) { if ( !Initialise() ) return Exit(); while( 1 ) { // Vertical Blank swiWaitForVBlank(); // Update world pWorld->Update(); } return Exit(); } |
I added:
Code: |
bool Initialise() { // Initialise the interrupt system irqInit(); // install our simple vblank handler irqSet(IRQ_VBLANK, VBlank); // Enable the interrupt irqEnable(IRQ_VBLANK); } void VBlank { } |
and now it kind of works, but the screen flickers alot
--Dannon