Picante: Render Buffer Go Bye-Bye
What's gone wrong My initial approach to rendering in a timely manner involved native/C code to 'blit' bitmaps to an 8bpp render buffer. Every frame, that render buffer is expanded into 16bpp stripes for transfer to the display. At about 18-19fps, this was pretty tidy. The next step I wanted to take was to render tilemaps to the background, so I found a tileset online and converted into bytes() objects in a .py file for import...and promptly ran out of RAM. The New Proposed Approach So then I started looking at a 4bpp (16 colour) render buffer with colour palette, and I didn't like the amount of pixel operations involved in drawing to it, let alone expanding it out to the stripe for display. So my intention now is to store a list of render commands for each stripe of the display. These commands could be partial 'blits' of a bitmap, or straight colour-fill, or whatever else. The key thing is that they are only actually executed once all render commands have b...