Mail Archives: djgpp/1999/12/23/14:35:51
On Thu, 23 Dec 1999, Ghalos wrote:
> browsing the Quake source I think I discovered that it uses
> __djgpp_nearptr_enable()...
Near pointers were *invented* at id Software's request, so naturally they
use it.
> does this mean that this method is feasible??
It is feasible, yes. Who said it isn't?
> (previously I got the impression that this was a risky and unstable way to
> do things)
It is extremely risky. The extent to which it is unstable depends on
your code: if your code is unstable, so will be nearptr.
It should be obvious that id Software invested much more time and
resources in testing their code than any average DJGPP user could
ever do.
> I can't seem to get the clock resolution to change correctly
> and so I can't accurately benchmark this method against the _far* methods...
> is it much faster??
In most applications, it is not faster. Don't forget that moist (all?)
the time-critical graphics in Quake are written in tight hand-optimized
assembly.
- Raw text -