Mail Archives: djgpp/1996/05/06/22:08:36
In article <8hYRtBARuejxEwB6 AT johnhamp DOT demon DOT co DOT uk>,
David Hampson <David AT johnhamp DOT demon DOT co DOT uk> wrote:
>Am I doing something hideously wrong? (Is my CopyLongs routine okay?)
>
>Here are some fragments of my C code:
>
>#include "daves.h"
>#include <stdio.h>
>#include <stdlib.h>
>#include <sys\movedata.h> /* For dosmemput() */
>#include <sys\nearptr.h> /* For Fat DS */
>
>int BlastScreen(char *ScrArea,int Page);
>int FatDSBlastScreen(char *ScrArea,int Page);
>
>...
> /* Draw the screen on DrawPage here */
> if (!__djgpp_nearptr_enable())
> {
> FatDSBlastScreen(MyScr,DrawPage);
> __djgpp_nearptr_disable();
> }
D'oh! __djgpp_nearptr_enable/disable() are super-slow! Only call them once
per program invokation, if possible.
There might be more, but that's gonna slow you down a lot right there.
--brennan
--
brennan AT rt66 DOT com | fsck /u
- Raw text -