www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/02/21:06:17

Date: Mon, 2 Mar 1998 18:05:53 -0800 (PST)
Message-Id: <199803030205.SAA00960@adit.ap.net>
Mime-Version: 1.0
To: Kdawghu AT hotmail DOT com (Kris Mills), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Which should i use NEAR ptr or FAR for VESA GRaphics

At 03:42  3/2/1998 GMT, Kris Mills wrote:
>
>So friends and i are working on a simple 3d game. We want the game to run as 
>fast as possible. Right now i am useing Vesa linear buffer which is great. But 
>i'm useing far ptr's. I have heard  that near ptr's are faster the far ptr's 
>but i want my code to be stable. I'm pretty new to Djgpp and protectect mode.
>Dose anyone have any good examples or can point me in the right direction
>to the fast way to draw to the screen.

There's some debate over this point. In general, if most of your graphics is
blitting, farptr (i.e. `movedata') should be just as fast as nearptr. If you
use putpixel a lot, nearptr may be faster, but IMHO that says you should
think about your algorithms some more.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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