PT EN
Efficient CPU Rendering on VBE framebuffer.

Efficient CPU Rendering on VBE framebuffer.

It all starts when you decide to build your own Operating System. You go through the bootloader, enter protected mode, long mode, and finally manage to draw a pixel on the screen using VESA BIOS Extensions (VBE).

You celebrate.

Then you try to clear the entire screen with a solid color and realize it’s running at a staggering 5 FPS.

Slowness

And the question is… But why?

So we start investigating. VBE basically gives you a physical address of the video memory, the Framebuffer. It’s a pointer. You write the colors there and the GPU shows it on the screen.

Read full article →