From 54dec44dbae4859842c6d99aafaafd186b33fee4 Mon Sep 17 00:00:00 2001 From: jordi Date: Thu, 27 Jan 2022 13:46:57 -0600 Subject: Add screen_get_refresh_rate to DisplayServer --- doc/classes/DisplayServer.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 6e06bf454c..e8289dc67e 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -399,6 +399,14 @@ + + + + + Returns the current refresh rate of the specified screen. If [code]screen[/code] is [code]SCREEN_OF_MAIN_WINDOW[/code] (the default value), a screen with the main window will be used. + [b]Note:[/b] Returns [code]60.0[/code] if the DisplayServer fails to find the refresh rate for the specified screen. On HTML5, [method screen_get_refresh_rate] will always return [code]60.0[/code] as there is no way to retrieve the refresh rate on that platform. + + -- cgit v1.2.3