Skip to content

RefreshRateAt

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzLLVM

RefreshRateAt 〔BlitzLLVM〕

RefreshRateAt:Int32 display:Int32, width:Int32, height:Int32, index:Int32
Parameter Mode Type Default Description
display In Int32 required The display number, from 1 to CountDisplays.
width In Int32 required The width in pixels of the size.
height In Int32 required The height in pixels of the size.
index In Int32 required The rate number, from 1 to CountRefreshRates.

Returns: The refresh rate in Hz, or 0 if there is no such rate.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

One of the refresh rates a display supports at a size, counted from the lowest. Rates that are the same after rounding to whole Hz are given once. This is a BlitzLLVM extension: the originals have no way to ask for more than the main display.

Differences

  • A display number that does not exist gives 0 (an empty text for the name) instead of stopping the program, because a display can be unplugged while the program runs.

Related Commands

CountRefreshRates 〔BlitzLLVM〕, DisplayModeRefreshRate 〔BlitzLLVM〕, DisplayRefreshRate 〔BlitzLLVM〕, HidePointer

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally