mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Only showing FPS in dev mode
This commit is contained in:
parent
f9ef95cb1c
commit
20d5835ff3
1 changed files with 48 additions and 45 deletions
|
@ -358,55 +358,58 @@ namespace IDE.ui
|
||||||
else
|
else
|
||||||
mStatusBoxUpdateCnt = -1;
|
mStatusBoxUpdateCnt = -1;
|
||||||
|
|
||||||
g.DrawString(StackStringFormat!("FPS: {0}", gApp.mLastFPS), GS!(4), 0);
|
if (gApp.mSettings.mEnableDevMode)
|
||||||
|
{
|
||||||
|
g.DrawString(StackStringFormat!("FPS: {0}", gApp.mLastFPS), GS!(4), 0);
|
||||||
|
|
||||||
String resolveStr = scope String();
|
String resolveStr = scope String();
|
||||||
let bfResolveCompiler = gApp.mBfResolveCompiler;
|
let bfResolveCompiler = gApp.mBfResolveCompiler;
|
||||||
if ((bfResolveCompiler != null) && (gApp.mBfResolveCompiler.mThreadWorker.mThreadRunning))
|
if ((bfResolveCompiler != null) && (gApp.mBfResolveCompiler.mThreadWorker.mThreadRunning))
|
||||||
{
|
{
|
||||||
resolveStr.Append("B");
|
resolveStr.Append("B");
|
||||||
}
|
}
|
||||||
if ((bfResolveCompiler != null) && (gApp.mBfResolveCompiler.mThreadWorkerHi.mThreadRunning))
|
if ((bfResolveCompiler != null) && (gApp.mBfResolveCompiler.mThreadWorkerHi.mThreadRunning))
|
||||||
{
|
{
|
||||||
resolveStr.Append("H");
|
resolveStr.Append("H");
|
||||||
}
|
}
|
||||||
#if IDE_C_SUPPORT
|
#if IDE_C_SUPPORT
|
||||||
if (gApp.mResolveClang.IsPerformingBackgroundOperation())
|
if (gApp.mResolveClang.IsPerformingBackgroundOperation())
|
||||||
{
|
{
|
||||||
if (resolveStr.Length > 0)
|
if (resolveStr.Length > 0)
|
||||||
resolveStr.Append(" & ");
|
resolveStr.Append(" & ");
|
||||||
resolveStr.Append("Clang");
|
resolveStr.Append("Clang");
|
||||||
}
|
}
|
||||||
if (gApp.mDepClang.IsPerformingBackgroundOperation())
|
if (gApp.mDepClang.IsPerformingBackgroundOperation())
|
||||||
{
|
{
|
||||||
if (resolveStr.Length > 0)
|
if (resolveStr.Length > 0)
|
||||||
resolveStr.Append(" ");
|
resolveStr.Append(" ");
|
||||||
resolveStr.Append("ClangB");
|
resolveStr.Append("ClangB");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*if (BfPassInstance.sPassInstances.Count > 0)
|
/*if (BfPassInstance.sPassInstances.Count > 0)
|
||||||
{
|
{
|
||||||
//resolveStr += String.Format(" PassInstances: {0}", BfPassInstance.sPassInstances.Count);
|
//resolveStr += String.Format(" PassInstances: {0}", BfPassInstance.sPassInstances.Count);
|
||||||
|
|
||||||
resolveStr += "ResolvePasses: {";
|
resolveStr += "ResolvePasses: {";
|
||||||
|
|
||||||
//foreach (var passInstance in BfPassInstance.sPassInstances)
|
//foreach (var passInstance in BfPassInstance.sPassInstances)
|
||||||
for (int passIdx = 0; passIdx < BfPassInstance.sPassInstances.Count; passIdx++)
|
for (int passIdx = 0; passIdx < BfPassInstance.sPassInstances.Count; passIdx++)
|
||||||
{
|
{
|
||||||
var passInstance = BfPassInstance.sPassInstances[passIdx];
|
var passInstance = BfPassInstance.sPassInstances[passIdx];
|
||||||
if (passIdx > 0)
|
if (passIdx > 0)
|
||||||
resolveStr += ", ";
|
resolveStr += ", ";
|
||||||
if (passInstance.mDbgStr != null)
|
if (passInstance.mDbgStr != null)
|
||||||
resolveStr += passInstance.mDbgStr;
|
resolveStr += passInstance.mDbgStr;
|
||||||
resolveStr += String.Format(" #{0}", passInstance.mId);
|
resolveStr += String.Format(" #{0}", passInstance.mId);
|
||||||
}
|
}
|
||||||
|
|
||||||
resolveStr += "}";
|
resolveStr += "}";
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
if (resolveStr.Length != 0)
|
if (resolveStr.Length != 0)
|
||||||
g.DrawString(resolveStr, GS!(100), 0);
|
g.DrawString(resolveStr, GS!(100), 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue