---
name: "exupdate"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://carta.tech/man/exupdate"
---

# exupdate(3alleg)

Supporting different screen update methods in a single program. Allegro game programming library.

## NAME

exupdate - Supporting different screen update methods in a single program. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**Example exupdate**

## DESCRIPTION

This program demonstrates how to support double buffering, page flipping, and triple buffering as options within a single program, and how to make things run at a constant rate no matter what the speed of your computer. You have to use this example from the command line to specify as first parameter a number which represents the type of video update you want: 1 for double buffering with memory bitmaps, 2 for page flipping, 3 for triple buffering and 4 for double buffering with system bitmaps. After this, a dialog allows you to select a screen resolution and finally you will see a kaleidoscopic animation, along with a frames per second counter on the top left of the screen.

## SEE ALSO

[**BITMAP**(3alleg)](/man/BITMAP/3alleg.md), [**END\_OF\_FUNCTION**(3alleg)](/man/END_OF_FUNCTION/3alleg.md), [**END\_OF\_MAIN**(3alleg)](/man/END_OF_MAIN/3alleg.md), [**LOCK\_FUNCTION**(3alleg)](/man/LOCK_FUNCTION/3alleg.md), [**LOCK\_VARIABLE**(3alleg)](/man/LOCK_VARIABLE/3alleg.md), [**PALETTE**(3alleg)](/man/PALETTE/3alleg.md), [**SCREEN\_H**(3alleg)](/man/SCREEN_H/3alleg.md), [**SCREEN\_W**(3alleg)](/man/SCREEN_W/3alleg.md), [**acquire\_bitmap**(3alleg)](/man/acquire_bitmap/3alleg.md), [**allegro\_error**(3alleg)](/man/allegro_error/3alleg.md), [**allegro\_init**(3alleg)](/man/allegro_init/3alleg.md), [**allegro\_message**(3alleg)](/man/allegro_message/3alleg.md), [**bitmap\_color\_depth**(3alleg)](/man/bitmap_color_depth/3alleg.md), [**blit**(3alleg)](/man/blit/3alleg.md), [**clear\_bitmap**(3alleg)](/man/clear_bitmap/3alleg.md), [**create\_bitmap**(3alleg)](/man/create_bitmap/3alleg.md), [**create\_system\_bitmap**(3alleg)](/man/create_system_bitmap/3alleg.md), [**create\_video\_bitmap**(3alleg)](/man/create_video_bitmap/3alleg.md), [**desktop\_palette**(3alleg)](/man/desktop_palette/3alleg.md), [**destroy\_bitmap**(3alleg)](/man/destroy_bitmap/3alleg.md), [**enable\_triple\_buffer**(3alleg)](/man/enable_triple_buffer/3alleg.md), [**fixcos**(3alleg)](/man/fixcos/3alleg.md), [**fixed**(3alleg)](/man/fixed/3alleg.md), [**fixmul**(3alleg)](/man/fixmul/3alleg.md), [**fixsin**(3alleg)](/man/fixsin/3alleg.md), [**fixtoi**(3alleg)](/man/fixtoi/3alleg.md), [**font**(3alleg)](/man/font/3alleg.md), [**ftofix**(3alleg)](/man/ftofix/3alleg.md), [**generate\_332\_palette**(3alleg)](/man/generate_332_palette/3alleg.md), [**gfx\_capabilities**(3alleg)](/man/gfx_capabilities/3alleg.md), [**gfx\_mode\_select\_ex**(3alleg)](/man/gfx_mode_select_ex/3alleg.md), [**install\_int\_ex**(3alleg)](/man/install_int_ex/3alleg.md), [**install\_keyboard**(3alleg)](/man/install_keyboard/3alleg.md), [**install\_mouse**(3alleg)](/man/install_mouse/3alleg.md), [**install\_timer**(3alleg)](/man/install_timer/3alleg.md), [**keypressed**(3alleg)](/man/keypressed/3alleg.md), [**line**(3alleg)](/man/line/3alleg.md), [**makecol**(3alleg)](/man/makecol/3alleg.md), [**poll\_scroll**(3alleg)](/man/poll_scroll/3alleg.md), [**release\_bitmap**(3alleg)](/man/release_bitmap/3alleg.md), [**request\_video\_bitmap**(3alleg)](/man/request_video_bitmap/3alleg.md), [**screen**(3alleg)](/man/screen/3alleg.md), [**set\_color\_depth**(3alleg)](/man/set_color_depth/3alleg.md), [**set\_gfx\_mode**(3alleg)](/man/set_gfx_mode/3alleg.md), [**set\_palette**(3alleg)](/man/set_palette/3alleg.md), [**show\_video\_bitmap**(3alleg)](/man/show_video_bitmap/3alleg.md), [**textout\_ex**(3alleg)](/man/textout_ex/3alleg.md), [**textprintf\_ex**(3alleg)](/man/textprintf_ex/3alleg.md), [**triangle**(3alleg)](/man/triangle/3alleg.md), [**vsync**(3alleg)](/man/vsync/3alleg.md), [**xor\_mode**(3alleg)](/man/xor_mode/3alleg.md)
