mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 18:25:53 +00:00
FPS counter
This commit is contained in:
parent
a9abec3573
commit
d25696425b
6 changed files with 48 additions and 21 deletions
11
Scripts/Utils/FpsCounterLabel.cs
Normal file
11
Scripts/Utils/FpsCounterLabel.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Utils;
|
||||
|
||||
public partial class FpsCounterLabel : Label
|
||||
{
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
this.Text = Engine.GetFramesPerSecond().ToString();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue