fps counter

This commit is contained in:
Haze Weathers 2025-12-10 15:55:29 -06:00
parent 3607ca7e2e
commit 3f2b7e3bd3
4 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,20 @@
[gd_scene load_steps=2 format=3 uid="uid://buvye1rl1faon"]
[ext_resource type="Script" uid="uid://dvn62r3oriwu8" path="res://globals/debug_overlay.gd" id="1_7e5kj"]
[node name="DebugOverlay" type="CanvasLayer" node_paths=PackedStringArray("_fps_counter")]
layer = 1000
script = ExtResource("1_7e5kj")
_fps_counter = NodePath("VBoxContainer/FPS/FPSCounter")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
[node name="FPS" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="VBoxContainer/FPS"]
layout_mode = 2
text = "FPS:"
[node name="FPSCounter" type="Label" parent="VBoxContainer/FPS"]
layout_mode = 2