Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Module framebuf

Module framebuf 

Source
Expand description

The pre-Gpu double buffer, kept for one stage: use crate::display::DoubleBuffer, whose methods take the crate::Gpu they write to.

A FrameBuffer tracks two on-screen regions in VRAM – one being displayed, one being drawn into. swap() flips them at a VBlank boundary. Layout is vertical: buffer A at Y=0, buffer B at Y=height. That fits 2×(640×240) side-by-side inside the 1024×512 VRAM on standard NTSC resolutions and gives the engine a natural tear-free presentation.

Structs§

FrameBufferDeprecated
Tracks display-start between two vertically stacked buffers.