#175867 - brave_orakio - Mon Feb 21, 2011 5:34 am
Hi, I'm gonna make an LZSS decompressor but my compressed data isn't vram safe because... I fail at it. The data is correctly compressed though cause I tried using the GBA built in decompressor (decompressed to EWRAM) and the image that I got was correct when I transferred it to vram.
so I decided to try to make the decompression vram safe by buffering to 8 or 16 word chunks and then copy these to vram as they get filled up and then repeat the preocess till the whole image is decompressed. Question is, are these 8 or 16 word chunks better being copied to vram through dma or am I better off using stmia/ldmia using C asm function?
Also does reading data from ROM have a huge performance hit? I plan to put the decompress function in IWRAM but the compressed data will be read straight from ROM into 8 or 16 word buffer(Technically still IWRAM) and then to vram.
_________________
help me
so I decided to try to make the decompression vram safe by buffering to 8 or 16 word chunks and then copy these to vram as they get filled up and then repeat the preocess till the whole image is decompressed. Question is, are these 8 or 16 word chunks better being copied to vram through dma or am I better off using stmia/ldmia using C asm function?
Also does reading data from ROM have a huge performance hit? I plan to put the decompress function in IWRAM but the compressed data will be read straight from ROM into 8 or 16 word buffer(Technically still IWRAM) and then to vram.
_________________
help me