www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/07/00:34:11

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Vesa mode graphics
Date: Thu, 6 Feb 1997 20:26:51 +0000
Organization: None
Distribution: world
Message-ID: <nNha0HAL6j+yEw1m@talula.demon.co.uk>
References: <gRdbzIAw+P8yEwlA AT talula DOT demon DOT co DOT uk>
<Pine DOT SGI DOT 3 DOT 93 DOT 970131151924 DOT 1275C-100000 AT gibson DOT eee DOT upd DOT edu DOT ph>
<1qOuNAA9pk8yEw0s AT talula DOT demon DOT co DOT uk> <yksn2tifbln DOT fsf AT ra DOT ibr DOT cs DOT tu-bs DOT de>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Till Harbaum writes:
>> and also a protected mode interface that can be used for the standard
>
>Are there any examples how to access this interface? At the moment i

Look at the Allegro sources, in vesa.c. You will also want a copy of the
VBE 2.0 spec: this can be found on http://www.rt66.com/~brennan/djgpp/.

>copy my buffer in parts of 64k and use the int10 call to switch between
>the 5 windows i need. How much slows the usage of the int10 window
>switching the screen update down compared to a linear frame buffer
>or a windowed buffer with proteced mode window switching?

The int10 call is several thousand times slower than doing everything in
protected mode. But if you are just doing a ram->vidmem blit, and so
only using five bank switches, this difference is negligible. It is when
you are drawing to unsorted, non bank-coherent locations that it has a
big effect.

The linear framebuffer is well worth using even if you are just blitting
to the screen, though, because a lot of recent cards use different
memory interfaces for linear and banked access, and can accept data
faster in linear modes.

/*
 *  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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019