improved handling of colors
improved debug colors refactoring
This commit is contained in:
20
Scenes/PerfDetails.cs
Normal file
20
Scenes/PerfDetails.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using FOU.Scripts;
|
||||
using Godot;
|
||||
|
||||
public partial class PerfDetails : Label
|
||||
{
|
||||
[Export]
|
||||
public bool ShowDetails = true;
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
Text = "";
|
||||
if (!ShowDetails) return;
|
||||
|
||||
int activeElements = 0;
|
||||
foreach (Chunk c in Main.Instance.Level.GetChunks())
|
||||
activeElements += c.ActiveElementsCount();
|
||||
|
||||
Text += $"Active Elements: {activeElements}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user