---
name: "get_refresh_rate"
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/get_refresh_rate/3alleg4"
---

# get\_refresh\_rate(3alleg4)

Returns the current refresh rate. Allegro game programming library.

## NAME

get\_refresh\_rate - Returns the current refresh rate. Allegro game programming library.

## SYNOPSIS

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

**int get\_refresh\_rate(void);**

## DESCRIPTION

Returns the current refresh rate, if known (not all drivers are able to  report this information). Returns zero if the actual rate is unknown.

## SEE ALSO

**request\_refresh\_rate**(3alleg4)
