4 months ago
Hello, I would like to scroll the screen. Either one line up/down or one column left/right.
Sure, I could just refresh (as before) the entire screen. But that's too heavy CPU for me (up to 150
drawImage() calls per frame at 40fps). I'm now ended at a CPU load of 110%.
If I am correct, the
gb.update() transfers a buffer into the TFT memory via DMA. Does anyone know if this is a single or double buffer? If it is a double buffer, could I then use the normal
gb.display.drawImage() with cropping information to move the screen?
Has anyone any idea or even something already programmed?
NEW 4 months ago
I have not tried and program scrolling for the Gamebuino Meta, but I can give you pointers on how the internals work :
So this can look like double buffering.
I suppose you can perform scrolling by moving areas of gb.display._buffer on itself. Update: nah, I suppose it gets cleared when leaving gb.update() (no time to check, sorry)