Page 1 of 1
setPlanSize doesn't change the addresses
Posted: Sat Dec 26, 2015 5:00 pm
by cero
I see setPlanSize doesn't move the planes' starting addresses, essentially leaving lots of wasted VRAM. Would it be reasonable to do so? Surely anyone changing the size can expect the planes' contents to be invalidated?
Setting the planes to 32*32 or 64*32 would leave space for hundreds of tiles, no? I believe the hw can address up to 2048 tiles.
Re: setPlanSize doesn't change the addresses
Posted: Sun Dec 27, 2015 10:25 pm
by Stef
I think it's better to keep methods separated. setPlanSize(..) only define the hardware plan size and so the tilemap size, then free to the user to move the tilemap address where he want, i think SGDK shouldn't do it automatically... Imagine the user defined a specific address for both plan, SGDK can't guess how to move them.
Re: setPlanSize doesn't change the addresses
Posted: Mon Dec 28, 2015 9:08 am
by cero
Perhaps a separate function then? VDP_compactVRAM()? Would be friendlier than expecting manual register-banging.
Re: setPlanSize doesn't change the addresses
Posted: Mon Dec 28, 2015 11:20 am
by Stef
Having a separate method could be a good idea, new
issue about it
