Page 1 of 1
vram E for extended sprite palettes?
Posted: Sat Oct 10, 2009 5:50 pm
by vuurrobin
a small question:
according to this (and me):
http://www.dev-scene.com/NDS/NDS_Tutorials_VramTable, you can use vram E for extended sprite palettes. but according to libnds and gbatek you can't.
which one is correct?
Re: vram E for extended sprite palettes?
Posted: Sun Oct 11, 2009 7:43 am
by Discostew
I believe that GBATek is correct, because of the way extended palettes work. For BG extended palettes, they can use a total of 32Kbytes, but that isn't for just one layer. It is split up among the 4 layers, making it sequential sections of 8KBytes slots (up to 256x16 16-bit color entries). Only BG0 & BG1 have the capability to change which slot they use (I'm not sure exactly the purpose for that unless it has something to do with only having VRAM_G used for BG extended palettes).
IMO, OBJs act like a additional layer to the current 4 BG layers, and is therefore, set the same allotted size of 8KBytes. If VRAM_E were able to do sprite extended palettes, you'd be wasting 56KBytes of video RAM because with the current layout, there's no way to be able to set the palette outside that area.
Re: vram E for extended sprite palettes?
Posted: Sun Oct 11, 2009 10:51 am
by vuurrobin
okay, thanks