Fromatting cleanup for review
This commit is contained in:
parent
f59f4b7d7f
commit
22198ee67c
5 changed files with 19 additions and 21 deletions
|
@ -51,7 +51,6 @@ namespace Ryujinx.Profiler
|
||||||
// each begin call increments and each end call decrements
|
// each begin call increments and each end call decrements
|
||||||
private int _depth;
|
private int _depth;
|
||||||
|
|
||||||
|
|
||||||
public TimingInfo()
|
public TimingInfo()
|
||||||
{
|
{
|
||||||
_timestamps = new List<Timestamp>();
|
_timestamps = new List<Timestamp>();
|
||||||
|
|
|
@ -41,14 +41,11 @@ namespace Ryujinx.Profiler.UI
|
||||||
private ProfileButton[] _buttons;
|
private ProfileButton[] _buttons;
|
||||||
|
|
||||||
private bool _initComplete = false;
|
private bool _initComplete = false;
|
||||||
|
|
||||||
private bool _visible = true;
|
private bool _visible = true;
|
||||||
private bool _visibleChanged = true;
|
private bool _visibleChanged = true;
|
||||||
private bool _viewportUpdated = true;
|
private bool _viewportUpdated = true;
|
||||||
private bool _redrawPending = true;
|
private bool _redrawPending = true;
|
||||||
|
|
||||||
private bool _displayGraph = true;
|
private bool _displayGraph = true;
|
||||||
|
|
||||||
private bool _showInactive = true;
|
private bool _showInactive = true;
|
||||||
private bool _paused = false;
|
private bool _paused = false;
|
||||||
private bool _doStep = false;
|
private bool _doStep = false;
|
||||||
|
@ -84,6 +81,7 @@ namespace Ryujinx.Profiler.UI
|
||||||
private bool _prevBackspaceDown = false;
|
private bool _prevBackspaceDown = false;
|
||||||
private double _backspaceDownTime = 0;
|
private double _backspaceDownTime = 0;
|
||||||
|
|
||||||
|
// F35 used as no key
|
||||||
private Key _graphControlKey = Key.F35;
|
private Key _graphControlKey = Key.F35;
|
||||||
|
|
||||||
// Event management
|
// Event management
|
||||||
|
@ -92,7 +90,6 @@ namespace Ryujinx.Profiler.UI
|
||||||
private bool _profileUpdated = false;
|
private bool _profileUpdated = false;
|
||||||
private readonly object _profileDataLock = new object();
|
private readonly object _profileDataLock = new object();
|
||||||
|
|
||||||
|
|
||||||
public ProfileWindow()
|
public ProfileWindow()
|
||||||
// Graphigs mode enables 2xAA
|
// Graphigs mode enables 2xAA
|
||||||
: base(1280, 720, new GraphicsMode(new ColorFormat(8, 8, 8, 8), 1, 1, 2))
|
: base(1280, 720, new GraphicsMode(new ColorFormat(8, 8, 8, 8), 1, 1, 2))
|
||||||
|
|
|
@ -53,6 +53,7 @@ namespace Ryujinx.Profiler.UI
|
||||||
top += barHeight;
|
top += barHeight;
|
||||||
bottom += barHeight;
|
bottom += barHeight;
|
||||||
right = (float)entry.Value.AverageTime / maxAverage * width + xOffset;
|
right = (float)entry.Value.AverageTime / maxAverage * width + xOffset;
|
||||||
|
|
||||||
GL.Vertex2(xOffset, bottom);
|
GL.Vertex2(xOffset, bottom);
|
||||||
GL.Vertex2(xOffset, top);
|
GL.Vertex2(xOffset, top);
|
||||||
GL.Vertex2(right, top);
|
GL.Vertex2(right, top);
|
||||||
|
@ -66,6 +67,7 @@ namespace Ryujinx.Profiler.UI
|
||||||
top += barHeight;
|
top += barHeight;
|
||||||
bottom += barHeight;
|
bottom += barHeight;
|
||||||
right = (float)entry.Value.TotalTime / maxTotal * width + xOffset;
|
right = (float)entry.Value.TotalTime / maxTotal * width + xOffset;
|
||||||
|
|
||||||
GL.Vertex2(xOffset, bottom);
|
GL.Vertex2(xOffset, bottom);
|
||||||
GL.Vertex2(xOffset, top);
|
GL.Vertex2(xOffset, top);
|
||||||
GL.Vertex2(right, top);
|
GL.Vertex2(right, top);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue