#37403 - donpeppoe - Fri Mar 11, 2005 1:00 pm
Hey,
I'm trying to make an intromovie. Its a backgroundimage with dimensions of 240x1760 (10 frames * 176 (After Dffects add 16 rows to a filmstrip, i compensate that)). And I shift 21120 bytes every frame.
This all works fine if I have a 5 frame movie, but when I use a 10 frame movie, it messes up the last few frames.
It seems like a memory issue. I don't really understand all the memoryfeatures of the GBA.
Any idea's? Thanks in advanced!
This is the code i use
21120 = 240 * (160 + 16) / 2
I'm trying to make an intromovie. Its a backgroundimage with dimensions of 240x1760 (10 frames * 176 (After Dffects add 16 rows to a filmstrip, i compensate that)). And I shift 21120 bytes every frame.
This all works fine if I have a 5 frame movie, but when I use a 10 frame movie, it messes up the last few frames.
It seems like a memory issue. I don't really understand all the memoryfeatures of the GBA.
Any idea's? Thanks in advanced!
This is the code i use
Code: |
for (t = 0; t < 10; t++ )
{ DMA_Copy( 3, (void*)&movieData[t * 21120], (void*)FrontBuffer, 19200, DMA_16NOW ); Sleep(20); WaitForVsync(); Flip(); } |
21120 = 240 * (160 + 16) / 2