Removed Memory Display.

This commit is contained in:
2026-05-19 19:21:11 +02:00
parent 95690072a3
commit e388083065
4 changed files with 458 additions and 14 deletions
-1
View File
@@ -7,7 +7,6 @@ public partial class UIHandler : Control
[Export] Camera3d mainCam;
[Export] Map map;
[Export] RichTextLabel FPS;
[Export] RichTextLabel RAM;
[Export] PanelContainer options;
[Export] Control uiContent;
[Export] PanelContainer menu;
-12
View File
@@ -7,23 +7,11 @@ public partial class UIHandler
public void DisplayStats()
{
FPS.Text = Engine.GetFramesPerSecond().ToString() + " FPS";
RAM.Text = GetMemoryDisplay();
DisplaySurvivalStats();
DisplayWorldStats();
DisplayLoseCondition();
}
private string GetMemoryDisplay()
{
double memory = Process.GetCurrentProcess().WorkingSet64 / (1024 * 1024);
if (memory > 1024)
{
return Math.Round(memory / 1024, 2).ToString() + " GB";
}
return memory.ToString() + " MB";
}
private void DisplayRobotAlarm()
{
string messages = "";