From e0649b43c4007cc84bb2e851bf3a47085b4a4701 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 26 Jun 2023 20:14:38 +0200 Subject: [PATCH] Fixed get_fps() --- wmgr.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wmgr.gd b/wmgr.gd index 4017d15..5a948d0 100644 --- a/wmgr.gd +++ b/wmgr.gd @@ -68,11 +68,11 @@ func get_mode() -> String: Logger.error("wmgr","Failed to get window mode: The window mode id \"" + str(DisplayServer.window_get_mode()) + "\" is not known to CORE.") return "INVALID_MODE" -func get_fps() -> String: +func get_fps() -> float: if str(delta) == "0": - game_fps = INF + return INF else: - game_fps = 1/delta + return 1/delta func get_rendertime() -> float: return Performance.get_monitor(Performance.TIME_PROCESS)