delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/02/04:05:23

From: eggbrains AT aol DOT com (Egg brains)
Newsgroups: comp.os.msdos.djgpp
Subject: Direct Access vs. Far vs. Near
Date: 1 Nov 1997 22:48:02 GMT
Lines: 21
Message-ID: <19971101224800.RAA21869@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

okay, anyway, in my program (a start of a graphics lib -- yes, i know about
 Allegro)  i draw pixles to the screen (what else).  when i directly wrote to
 the screen ie:

vga = (unsigned char*)MK_FP(0xA000, 0);
vga[where]=color;

i can draw about 1.6 million pixels per second, however, when using Farnspoke,
 i can draw up to 3+ million pixels per second... why is it so much faster?

would using the near access go faster yet?

anyway, using the Far mode, how would i make selectors to sprites? would i make
 the sprites by define an array (with malloc/new etc...) and then make a
 selctor to it?  what about if I change the size/location? i will need to make
 a new selector right? an since you can't delete selectors if i re-size it
 enough will i run out of memmory?

Thanx a lot, 
    Paul

- Raw text -


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