Files
godot-demo-projects/3d/visibility_ranges/fps_label.gd
2025-10-01 21:47:36 -07:00

7 lines
154 B
GDScript

extends Label
func _process(_delta: float) -> void:
var fps: float = Engine.get_frames_per_second()
text = "%d FPS (%.2f mspf)" % [fps, 1000.0 / fps]