performance widget changes
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user