#26312 - ProblemBaby - Sun Sep 12, 2004 8:28 pm
Ive never done that before so I dont really know how to do it!
My idea is to use HDMA for my water effect instead of a HBlank Interrupt first off I want to ask if it will be faster?
here is the code for my interrupt:
Is it possible to do this with HDMA? And how is it done hints would be great!
My idea is to use HDMA for my water effect instead of a HBlank Interrupt first off I want to ask if it will be faster?
here is the code for my interrupt:
Code: |
void interrupt() { if (REG_VCOUNT < 160) { REG_BG2HOFS = 8 + (SIN[((REG_VCOUNT + (Counter>>3) - 80) & 0x7) << 5] >> 8); REG_BG2VOFS = 8 + (COS[((REG_VCOUNT + (Counter>>3) - 80) & 0xF) << 4] >> 8); REG_BG1HOFS = 8 + (SIN[((REG_VCOUNT + (Counter>>3) - 80) & 0x7) << 5] >> 8); } else if (REG_VCOUNT == 160) Counter++; } |
Is it possible to do this with HDMA? And how is it done hints would be great!