Mail Archives: djgpp/1998/07/22/00:03:11
"Pawel Kowalski" <pk AT tcs DOT uni DOT wroc DOT pl> writes:
> I tried Allegro demo to find out what's faster: page flipping of double buffer.
> I was almost sure that the firtst technique is ~1/4 faster. Well, ...:
> 640x480x8 DB - 106fps, PF - 59fps
> 800x600x8 DB - 66fps, PF - 60fps
> 1024x768x8 DB - 39fps, PF - 60fps
> Why PF fps is always the same?
For smooth animation page-flipping waits for vertical retrace before
switching pages. When using double-buffering there is no vsync, otherwise
you may see both old and new frames if the whole screen can not be copied
during vertical retrace.
> I tried removing vsync_in() from
> vesa_scroll(int, int) (djgpp/vesa.c) but with no effect...
Remove vsync() call in demo game not in library sources.
- Raw text -