---
name: "retrace_count"
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/retrace_count"
---

# retrace\_count(3alleg)

Retrace count simulator. Allegro game programming library.

## NAME

retrace\_count - Retrace count simulator. Allegro game programming library.

## SYNOPSIS

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

**extern volatile int retrace\_count;**

## DESCRIPTION

If the retrace simulator is installed, this count is incremented on each vertical retrace; otherwise, if the refresh rate is known, the count is incremented at the same rate (ignoring retraces); otherwise, it is incremented 70 times a second. This provides a way of controlling the speed of your program without installing user timer functions.

## SEE ALSO

[**ex3d**(3alleg)](/ex3d/3alleg.md), [**exblend**(3alleg)](/exblend/3alleg.md), [**exdbuf**(3alleg)](/exdbuf/3alleg.md), [**exflip**(3alleg)](/exflip/3alleg.md), [**exlights**(3alleg)](/exlights/3alleg.md)
