GP32 External C Image Arrays


well, its definately a lot faster for me. The top-end speed is a few fps faster, but the original memcopy suffered from huge slowdown on non-alignment, whereas the new one is pretty much constant.

Using the old one (values at 40MHz, drawing a fullscreen sprite):
aligned 38fps, misaligned >11fps

Using the new one
aligned 42 fps, misaligned >38fps
 
Just revisitng this alignment issue-

My raw data arrays needed to be aligned or they would crash my app, so I tried align 32,16 and 8 and they all worked. At the time I though that these were BIT alignments, but they are actually BYTE alignments, so you only need to use 4:

Code:
unsigned char variable1[] __attribute__ ((aligned (4))) = {...};
 
Back
Top