Lore archive · Warcraft Wiki, 2023 dump
API GetRefreshRates
Last wiki revision 2020-04-04
Returns a list of available refresh rates refreshrate1, refreshrate2, refreshrate3, ... = GetRefreshRates([resolution])
- Number resolution (optional)
- Index of the resolution you want to get the refresh rates for. Must be an index returned by GetScreenResolutions.
- Passing defaults this argument to 1, the lowest resolution available.
- Number refreshrateN
- Value of the Nth refresh rate
<dl><dd> for i = 1, select("#", GetRefreshRates) do local entry = select(i, GetRefreshRates) DEFAULT_CHAT_FRAME:AddMessage(format('Refresh rate %d: %d Hz', i, entry)) end
Output: Refresh rate 1: 60 Hz Refresh rate 2: 75 Hz Refresh rate 3: 85 Hz Refresh rate 4: 100 Hz </dl></dd>
Source
https://warcraft.wiki.gg/wiki/API_GetRefreshRates · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.