Mail Archives: djgpp/2000/05/21/01:17:12
On Sat, 20 May 2000, Thomas J. Hruska wrote:
> At 04:37 PM 5/20/00 -0400, you wrote:
> >Library function `movedata' already does that. I suggest to use it
> >instead of messing with inline assembly.
>
> Hmm...fps doesn't change very much even with _movedatal.
Then maybe moving data is not your problem at all.
> BIOS video calls for bank switching are my problem then. Ho hum.
I suggest to profile your program instead of guessing. DJGPP toolchain
includes a profiler, see chapter 13 of the FAQ for details. Usually,
the results of profiling surprise programmers, which means that guessing
the hot spots doesn't work very well ;-).
If the profile shows that moving data takes a significant portion of the
run time, then it could be that your VGA is simply too slow for the
particular algorithm you've chosen to implement.
- Raw text -