performance widget changes

This commit is contained in:
2022-05-15 18:00:22 +03:00
parent 6a4ecfdf0b
commit e994677566
5 changed files with 189 additions and 306 deletions

View File

@@ -10,9 +10,6 @@ namespace Game
{
public class ConsoleContentTextBox : Control
{
public static double accumDrawTime;
public static long accumDrawTimes;
private readonly FontReference Font;
protected TextLayoutOptions _layout;
@@ -194,8 +191,6 @@ namespace Game
if (!font)
return;
Stopwatch sw = Stopwatch.StartNew();
// Background
Profiler.BeginEvent("ConsoleContentTextBoxDraw_Background");
Color backColor = BackgroundColor;
@@ -358,10 +353,6 @@ namespace Game
Profiler.EndEvent();
}
sw.Stop();
accumDrawTime += sw.Elapsed.TotalSeconds;
accumDrawTimes++;
}