Mail Archives: djgpp/1997/01/31/00:46:38
Ansel Sermersheim writes:
>Seconded. Even if it works, get and use Univbe (called Display Doctor
>now). I'm running a PCI ATI m32 chipset. Before, with allegro
>autodetecting vesa 1.2 mode, I got 26k putpixels per second. After
>Univbe, it went to 660k 8-)
The difference between real mode VESA and a linear framebuffer can
certainly be spectacular, but those figures are hardly typical. The
major expense with the VESA 1.2 API is calling the bank switching
interrupt, and when drawing pixels to random locations, a bank switch is
needed for virtually every pixel. With larger drawing operations that
are more bank-coherent, the speed difference becomes far less (eg.
blitting an entire 640x480 image onto the screen only requires 5 bank
switch operations). So your example is extremely biased: timing random
rectangles or 32x32 sprites would give a far more meaningful comparison.
VBE 2.0 is still faster, though, just not by quite as much as you
implied :-)
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
*/
- Raw text -