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.

Coding > BG Memory updating on the fly

#3987 - blindfold - Fri Mar 14, 2003 2:14 pm

Hi.

I would like to ask you about speed of updating BG Memory on the fly.

So how long does it take to initialize new tiles from memory? I don't mean by this making screen from tiles, but making new tiles from my arrays.

Can I change a whole BG Mem "from frame to frame", like VBL Interrupt?

I'm mainly using HAM, so would you consider a HAM functions speed (according to "normal" programming).

Thanks

#4011 - jenswa - Sat Mar 15, 2003 8:54 pm

I can't help you with the times, but a map isn't that big,
it's just an array of 1024 (or bigger if u use 512x512) entries that can be done on the fly, but you shouldn't overwrite the thing currently displayed
on the screen, makes weird artifacts i thought so.

But instead just load it into memory a little before you need it,
say if you need the next piece of a map, load it while the player
is getting near the end of the first map, preloading stuff i mean.

Or just load it into the not currently displayed memory and then
switch between the screen memory.

bye

JJ
_________________
It seems this wasn't lost after all.