Skip to content

Add support for double buffering in Mode 4 instead of page flipping. #19

@supercom32

Description

@supercom32

Enhancement requested under Dragon Basic for Linux (Commit ID: d2ce042)

It would be nice if we could have proper double buffering support added for Mode 4 graphics instead of page flipping. With page flipping, the user must draw on the back buffer, flip the screen, then re-draw the whole screen again with the addition of new elements. Instead of asking the user to do fancy coding to handle the redrawing of elements over again (especially for complicated scenes), it would be nice if double buffering was done instead.

That is, you draw your graphics to the back buffer. Then once your done all your rendering, just call "Flip" during a vBlank to copy the back buffer data to the foreground buffer. That way, if the user wants to make additional changes to the screen, they just need to continue writing to the back buffer. No mirrored drawing or having two buffers to keep in sync. The user just updates one buffer, and when they are ready to show the results they just call "Flip".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions