Mail Archives: djgpp/1997/01/20/18:10:23
frenchc wrote:
> Uhm... Excuse me?!? Do you know what the word means? Fast. You won't get
> any faster than allegro.
Not entirely true. A general purpose system will always be slightly
slower
than something customised for the individual needs of your app. Of
course,
the time investment in writing your own high-speed routines probably
wouldn't be worth it.. anyway, on to the matter at hand:
> real purpose to doing what he is doing. Just redraw the whole screen once
> again to your double buffer and dump it, don't add rows. I once wrote a
> dirty rectangle tile-based engine and trust me, it was waaay a bad idea.
> I did eventually get it working, but it wasn't worth it. Just dump the
> whole screen, that's what I'm doing now...
Mmmm.. actually, my experience has been slightly different. Without
using
dirty rectangles, the double buffer approach was unacceptably slow at
640x480 on my 486dx2/66. With dirty rectangles, however, it does manage
to get up to around ~40 fps (compared to.. somewhere between 20-30 using
the other method).
On a pentium, it doesn't make much difference (it'll probably run at
refresh either way) but if you want to include slower machines (and
your in-game objects aren't very big, or too numerous) dirty rectangles
are probably the way to go.
Cheers,
Bill Lachance
billl AT synapse DOT nmet
- Raw text -