---
name: "exupdate"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/exupdate/3alleg4"
---

# exupdate(3alleg4)

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**(3alleg4), **END\_OF\_FUNCTION**(3alleg4), **END\_OF\_MAIN**(3alleg4), **LOCK\_FUNCTION**(3alleg4), **LOCK\_VARIABLE**(3alleg4), **PALETTE**(3alleg4), **SCREEN\_H**(3alleg4), **SCREEN\_W**(3alleg4), **acquire\_bitmap**(3alleg4), **allegro\_error**(3alleg4), **allegro\_init**(3alleg4), **allegro\_message**(3alleg4), **bitmap\_color\_depth**(3alleg4), **blit**(3alleg4), **clear\_bitmap**(3alleg4), **create\_bitmap**(3alleg4), **create\_system\_bitmap**(3alleg4), **create\_video\_bitmap**(3alleg4), **desktop\_palette**(3alleg4), **destroy\_bitmap**(3alleg4), **enable\_triple\_buffer**(3alleg4), **fixcos**(3alleg4), **fixed**(3alleg4), **fixmul**(3alleg4), **fixsin**(3alleg4), **fixtoi**(3alleg4), **font**(3alleg4), **ftofix**(3alleg4), **generate\_332\_palette**(3alleg4), **gfx\_capabilities**(3alleg4), **gfx\_mode\_select\_ex**(3alleg4), **install\_int\_ex**(3alleg4), **install\_keyboard**(3alleg4), **install\_mouse**(3alleg4), **install\_timer**(3alleg4), **keypressed**(3alleg4), **line**(3alleg4), **makecol**(3alleg4), **poll\_scroll**(3alleg4), **release\_bitmap**(3alleg4), **request\_video\_bitmap**(3alleg4), **screen**(3alleg4), **set\_color\_depth**(3alleg4), **set\_gfx\_mode**(3alleg4), **set\_palette**(3alleg4), **show\_video\_bitmap**(3alleg4), **textout\_ex**(3alleg4), **textprintf\_ex**(3alleg4), **triangle**(3alleg4), **vsync**(3alleg4), **xor\_mode**(3alleg4)
