mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
added a quick and dirty fps counter (press F4 or R3 on controller, for it to be toggled)
This commit is contained in:
@@ -245,6 +245,10 @@ func _process(delta: float) -> void:
|
||||
AudioManager.current_level_theme = ""
|
||||
level_theme_changed.emit()
|
||||
log_comment("Reloaded resource packs!")
|
||||
|
||||
if Input.is_action_just_pressed("toggle_fps_count"):
|
||||
%FPSCount.visible = !%FPSCount.visible
|
||||
%FPSCount.text = str(int(Engine.get_frames_per_second())) + " FPS"
|
||||
|
||||
handle_p_switch(delta)
|
||||
if Input.is_key_label_pressed(KEY_F11) and debug_mode == false and OS.is_debug_build():
|
||||
|
Reference in New Issue
Block a user