[gd_scene load_steps=3 format=2] [ext_resource path="res://font/8bit.tres" type="DynamicFont" id=6] [sub_resource type="GDScript" id=1] script/source = "extends Label func _input(event): if Input.is_action_just_pressed(\"f3\"): visible = !visible Engine.set_target_fps(0 if visible else 60) func _physics_process(delta): text = \"fps: \" + str(Engine.get_frames_per_second()) text += \"\\n\" text += 'mem: ' + String.humanize_size(OS.get_static_memory_usage()) text += \"\\n\" text += 'vram: ' + String.humanize_size(Performance.get_monitor(20)) text += \"\\n\" # if has_node(singleton.player_path): # text += 'x: ' + str(int(get_node(singleton.player_path).global_position.x)) # text += \"\\n\" # text += 'y: ' + str(int(get_node(singleton.player_path).global_position.y)) " [node name="Debug" type="CanvasLayer"] pause_mode = 2 layer = 127 [node name="fpscount" type="Label" parent="."] pause_mode = 2 anchor_left = -0.00539021 anchor_top = 0.260297 anchor_right = -0.00539021 anchor_bottom = 0.260297 margin_left = 11.9259 margin_top = 188.737 margin_right = 189.926 margin_bottom = 309.737 custom_fonts/font = ExtResource( 6 ) text = "fps: 60" script = SubResource( 1 ) __meta__ = { "_edit_use_anchors_": true }