Fromatting cleanup for review

This commit is contained in:
Andy Adshead 2019-02-16 01:39:43 +00:00
commit 22198ee67c
5 changed files with 19 additions and 21 deletions

View file

@ -51,7 +51,6 @@ namespace Ryujinx.Profiler
// each begin call increments and each end call decrements
private int _depth;
public TimingInfo()
{
_timestamps = new List<Timestamp>();

View file

@ -41,14 +41,11 @@ namespace Ryujinx.Profiler.UI
private ProfileButton[] _buttons;
private bool _initComplete = false;
private bool _visible = true;
private bool _visibleChanged = true;
private bool _viewportUpdated = true;
private bool _redrawPending = true;
private bool _displayGraph = true;
private bool _showInactive = true;
private bool _paused = false;
private bool _doStep = false;
@ -84,6 +81,7 @@ namespace Ryujinx.Profiler.UI
private bool _prevBackspaceDown = false;
private double _backspaceDownTime = 0;
// F35 used as no key
private Key _graphControlKey = Key.F35;
// Event management
@ -92,7 +90,6 @@ namespace Ryujinx.Profiler.UI
private bool _profileUpdated = false;
private readonly object _profileDataLock = new object();
public ProfileWindow()
// Graphigs mode enables 2xAA
: base(1280, 720, new GraphicsMode(new ColorFormat(8, 8, 8, 8), 1, 1, 2))

View file

@ -53,6 +53,7 @@ namespace Ryujinx.Profiler.UI
top += barHeight;
bottom += barHeight;
right = (float)entry.Value.AverageTime / maxAverage * width + xOffset;
GL.Vertex2(xOffset, bottom);
GL.Vertex2(xOffset, top);
GL.Vertex2(right, top);
@ -66,6 +67,7 @@ namespace Ryujinx.Profiler.UI
top += barHeight;
bottom += barHeight;
right = (float)entry.Value.TotalTime / maxTotal * width + xOffset;
GL.Vertex2(xOffset, bottom);
GL.Vertex2(xOffset, top);
GL.Vertex2(right, top);