1vsync(3) Allegro manual vsync(3)
2
3
4
6 vsync - Waits for a vertical retrace to begin. Allegro game programming
7 library.
8
10 #include <allegro.h>
11
12
13 void vsync();
14
16 Waits for a vertical retrace to begin. The retrace happens when the
17 electron beam in your monitor has reached the bottom of the screen and
18 is moving back to the top ready for another scan. During this short
19 period the graphics card isn't sending any data to the monitor, so you
20 can do things to it that aren't possible at other times, such as alter‐
21 ing the palette without causing flickering (snow). Allegro will auto‐
22 matically wait for a retrace before altering the palette or doing any
23 hardware scrolling, though, so you don't normally need to bother with
24 this function.
25
26
27
28
30 set_palette(3), scroll_screen(3)
31
32
33
34Allegro version 4.2.2 vsync(3)