From: "Lennart Marien" 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 Precedence: bulk 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