Comparison of double buffering and page flipping. allegro game programming library.
#include <allegro.h>
Example exflip
This program moves a circle across the screen, first with a double buffer and then using page flips.
BITMAP(3alleg4), END_OF_MAIN(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), circlefill(3alleg4), clear_keybuf(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), create_video_bitmap(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), font(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), keypressed(3alleg4), makecol(3alleg4), retrace_count(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), show_video_bitmap(3alleg4), textprintf_ex(3alleg4)