aboutsummaryrefslogtreecommitdiff
path: root/client/menu/popup_message.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/popup_message.gd')
-rw-r--r--client/menu/popup_message.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/menu/popup_message.gd b/client/menu/popup_message.gd
index 9293847b..86b0ee2b 100644
--- a/client/menu/popup_message.gd
+++ b/client/menu/popup_message.gd
@@ -155,3 +155,8 @@ func _on_join_while_running_timeout():
if not game.is_joined and not Global.get_hint("has_seen_join_while_running"):
Global.set_hint("has_seen_join_while_running", true)
display_hint_msg(tr("Press %s and click \"Join\" to join the game while it is running") % display_keybind(tr("ESCAPE"), tr("Menu button")))
+
+func _on_performance_timeout() -> void:
+ if not Global.get_hint("has_seen_performance") and Engine.get_frames_per_second() < DisplayServer.screen_get_refresh_rate() * 0.75:
+ Global.set_hint("has_seen_performance", true)
+ display_hint_msg(tr("Your framerate seems to be low. You can lower your graphics settings in the settings menu."))