Mail Archives: djgpp/1999/12/23/14:58:55
Ghalos wrote:
>
> browsing the Quake source I think I discovered that it uses
> __djgpp_nearptr_enable()... does this mean that this method is feasible??
> (previously I got the impression that this was a risky and unstable way to
> do things)
It's stable if you know what you are doing. The paging mechanism provides
additional protection. (That's why when Quake crashes, it's always a
page fault, not GP.)
> 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??
YesNo. If using double buffering using system RAM, it doesn't help.
If drawing directly to LFB, it saves additional segment overrides.
(Use fastvid!)
Id uses it because it's so flexible. If you REALLY start reading the source,
you'll find near pointers EVERYWHERE, not only in graphics. In sound DMAs etc...
An interesting thing: Somewhere in the source (well 1.01 src anyway) there's
a comment something like
"We disable LFB mapping when it's not needed, since some cards can't stay
mapped in all the time."
Now what the heck does that mean???
> Ghalos - greg AT holdridge7 DOT freeserve DOT co DOT uk
--
- Antti
- To reply, remove you-know-what.
- Raw text -