RE: [AD] show_video_bitmap() documentation a bit misleading...

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


-----Original Message-----
However, and I think this is in the docs, you should NEVER use vsync to
regulate the speed at which your program runs - it's bound to break sooner
or later. What if you can't fit your logic update code in one cycle? You'll

I agree with you completely (I choose that method simply because it was a
project for a home brew control terminal in which I always knew the specs).
However, show_video_bitmap() is (if I'm not mistaken) used many of times for
page flipping for a smooth display. What's the point of page flipping if
vsync is not cared about?

This isn't SVGALIB specific (I don't think...). If you look in the SVGALIB
driver, it simply defines NULL for show_video_bitmap portion of the driver.
I assume this is a heads up for Allegro to use a fallback function so
show_video_bitmap still works, and that is what I am feeling is at fault. I
would think this fallback function should attempt to use the vsync if the
driver has one (in which care the SVGALIB driver does).

   --Matt Witherspoon





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/