#176135 - gameporter - Fri Apr 15, 2011 11:50 pm
The DS can display 262,144 colors (I think). In theory, if you have a 16-bit background on the top and bottom screens, there will be 131,072 colors left. That's 8,192 4-bit sprites left. Can you have two 16-bit backgrounds and still have a bunch of sprites on the screen (providing there's enough memory)?
#176136 - Dwedit - Fri Apr 15, 2011 11:59 pm
You're looking at the wrong numbers.
What matters is bits per pixel, number of pixels, and total size of video memory, not number of possible colors.
A 256x192 image of 16-bit pixels takes up 96k of video memory. The DS has a total of 656KB of video memory. Additionally, the DS has a mode where it can use main memory as video memory.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
#176147 - sverx - Mon Apr 18, 2011 11:13 am
gameporter wrote: |
Can you have two 16-bit backgrounds and still have a bunch of sprites on the screen (providing there's enough memory)? |
You can have two 15bpp bitmap BGs (256x256 pixel, 128KB each) using Mode5...
#176148 - gameporter - Tue Apr 19, 2011 12:42 am
Why do they have to be 256x256?
#176150 - sverx - Tue Apr 19, 2011 3:56 pm
They don't. A 15 bpp bitmap BG can be 128x128 or 256x256 or 512x256 or 512x512. Of course the 3rd requires 256KB VRAM and the 4th requires 512KB VRAM.