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