www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/30/11:15:30

From: "Lennart Marien" <lennartm AT metronet DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: nearptr or farptr=?
Date: Thu, 30 Apr 1998 16:20:39 +0200
Organization: Metronet
Lines: 27
Message-ID: <6ia1ah$aj7$1@news.metronet.de>
NNTP-Posting-Host: hamburg1.pop.metronet.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I just started with graphics using DJGPP and heard
that using nearptr-method would be faster than using
farptr.Is this correct?My second question is:

void putpixel(int x,int y,char c)
{
__djgpp_nearptr_enable();
[...]
__djgpp_nearptr_disable();
}

Isnīt this slow because of the frequent memory protection switching?One
could enable nearptr at
the beginning of a program and disable it at the end.
This should make it a lot faster.One could take the advantage of the new
memmodel and so on and
could go on programming like in reall mode.Certainly
itīa bit dangerous, but what can actually happen?
Your computer wonīt be destroyed I think.The point
is that in this way you could save alot of time in programs which do a lot
of graphics, couldnīt you?

Your opinion(please donīt forget my question)

cu


- Raw text -


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