Removed Memory Display.
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user