Page 1 of 1

background/sprite functions, and OFFSET in vram banks

Posted: Sun Sep 06, 2009 10:03 pm
by Discostew
After addressing an issue in a recent thread here, it has been seen that unless the VRAM banks are set up so that there are no offsets used, graphic corruption (or no graphics) will occur.

Example:

As in the thread listed, by using VRAM_B_MAIN_SPRITE, the sprites wouldn't show up because there is an offset included in it, pushing the actual pointer from 6400000h to 6420000h. The sprite function doesn't take into account this offset, and continues to use 6400000h as it's starting pointer position.

So, would it be possible (or reasonable) to including a check on the VRAM states when determining graphic allocation?