gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > OAMData[] size

#68184 - christosterone - Mon Jan 23, 2006 12:49 am

just quick question

how large is the OAMData[] array and moreover, how many 8x8 tiles can i fit in there

the num of squares should equal ( OAMData size )/128

kthnx

#68230 - tepples - Mon Jan 23, 2006 3:40 am

"Number of tiles" is not associated with OAM. There are some popular GBA tutorials that confuse sprite cel VRAM (which holds up to 1024 tiles) and OAM (which holds a list of up to 128 instructions to draw tiles at given locations). I've been told that one of these uses "OAMData" to refer to sprite cel VRAM.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#68324 - christosterone - Mon Jan 23, 2006 8:42 pm

im referring to the generic image data arrray for the sprites, not the 128 screen sprite array

#68358 - keldon - Mon Jan 23, 2006 11:11 pm

The Source:
http://www.work.de/nocash/gbatek.htm#lcdvramoverview

#68385 - nmain - Tue Jan 24, 2006 5:38 am

christosterone wrote:
im referring to the generic image data arrray for the sprites, not the 128 screen sprite array


it can hold 1024 8x8 4bpp tiles (each tile is 32 bytes) or 512 8x8 8bpp tiles (each tile is 64 bytes).