16 lines
733 B
GDScript
16 lines
733 B
GDScript
extends CanvasLayer
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
$VBoxContainer/Fps.text = "FPS: %s" % Performance.get_monitor(Performance.TIME_FPS)
|
|
$VBoxContainer/Frametime.text = "FrameTime: %s" % snapped(Engine.get_physics_interpolation_fraction(), 0.000001)
|
|
$VBoxContainer/PT.text = "Process time: %s ms" % snapped(Performance.get_monitor(Performance.TIME_PROCESS)*1000, 0.001)
|
|
$VBoxContainer/VideoMemory.text ="Video memory Used: %s MB" % snapped(Performance.get_monitor(Performance.RENDER_VIDEO_MEM_USED)/1024**2, 0.001)
|
|
pass
|