10 lines
253 B
GDScript3
Raw Normal View History

2024-01-18 23:35:17 +01:00
extends DebugLabel
@export var monitor: Performance.Monitor
2024-02-12 12:38:31 +01:00
@export var multiply := 1.0
@export var precision := 0.1
@export var suffix := ""
2024-01-18 23:35:17 +01:00
func _process(_delta):
2024-02-12 12:38:31 +01:00
text = str(snapped(Performance.get_monitor(monitor) * multiply, precision)) + suffix