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 > too many VRAM BG MEM yet? uh!

#8449 - RaBBi - Thu Jul 10, 2003 11:37 pm

Hello,

I keep on learning gba dev since 4 days now, with HAM.

I'm working on tiles mode and try to show a 256x256 bmp (125 unique colors).

I converted it by gfx2gba 0.13 > OK

But when I load it, the emulator returns me a error message :

Code:
assertion failed: (( I+CNT)x32)
in file: memory.c
at line: +299
message: HAM_MEMALLOCVRAM BG MEM FULL..DEALLOCATLE FIRST


It seems the SIZEOF tiles array is too big (25216) for the memory...

I had a sprite so I think it took too memory, so I disabled it, but I always have this message...

When I re-think that there are 128 simultaneous sprites at a time...
I'm still sceptic about it, if just one pic take the whole mem ^^

Can anyone take time to make a point on tiles memory please ?
than U
_________________
Sorry for my poor english, but it would be worst for you to understand me if I speak in my native language, French ^^