Grumps
Posts: 6
Joined: Tue Mar 06, 2012 8:07 pm

Multiple Frame Buffers

Thu Nov 22, 2012 6:58 pm

Hi
I've got my Bare Metal programming off to a decent start and have a (basic) Pacman game running.
What I'd like to ask is if it is possible to have multiple frame buffers and to swap between them, and if there's a way of using a VSYNC?
I have this https://github.com/raspberrypi/firmware ... -interface for info on mailbox commands, but it's not clear if any of these will do what I want. Perhaps the offset command.
Ta.

JacobL
Posts: 76
Joined: Sun Apr 15, 2012 2:23 pm

Re: Multiple Frame Buffers

Thu Nov 22, 2012 7:47 pm

You could make the virtual screen double the size of the physical screen, and then just switch the offset between the two. Not sure if it works in practice, but the framebuffer API has room for virtual screens.

Return to “Bare metal, Assembly language”