Enable PerformanceManager logging with ImGui checkbox.

This commit is contained in:
Matthew Territo
2017-07-06 12:07:50 -06:00
parent 9015a8dad9
commit 810c2ec493
3 changed files with 52 additions and 14 deletions

View File

@@ -81,17 +81,16 @@ void GuiPerformanceComponent::render() {
v = _functionsIsEnabled;
ImGui::Checkbox("Functions", &v);
_functionsIsEnabled = v;
v = OsEng.renderEngine().performanceManager()->loggingEnabled();
ImGui::Checkbox("Output Logs", &v);
OsEng.renderEngine().performanceManager()->setLogging(v);
ImGui::Spacing();
if (ImGui::Button("Reset measurements")) {
OsEng.renderEngine().performanceManager()->resetPerformanceMeasurements();
}
if (ImGui::Button("Output Logs")) {
OsEng.renderEngine().performanceManager()->outputLogs();
}
if (_sceneGraphIsEnabled) {
bool sge = _sceneGraphIsEnabled;
ImGui::Begin("SceneGraph", &sge);