mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
Stub for Performance Manager & GUI Button
This commit is contained in:
@@ -58,6 +58,7 @@ public:
|
||||
void storeIndividualPerformanceMeasurement(std::string identifier, long long nanoseconds);
|
||||
void storeScenePerformanceMeasurements(const std::vector<SceneGraphNode*>& sceneNodes);
|
||||
|
||||
void outputLogs();
|
||||
PerformanceLayout* performanceData();
|
||||
|
||||
private:
|
||||
|
||||
@@ -87,6 +87,10 @@ void GuiPerformanceComponent::render() {
|
||||
if (ImGui::Button("Reset measurements")) {
|
||||
OsEng.renderEngine().performanceManager()->resetPerformanceMeasurements();
|
||||
}
|
||||
|
||||
if (ImGui::Button("Output Logs")) {
|
||||
OsEng.renderEngine().performanceManager()->outputLogs();
|
||||
}
|
||||
|
||||
if (_sceneGraphIsEnabled) {
|
||||
bool sge = _sceneGraphIsEnabled;
|
||||
|
||||
@@ -196,6 +196,10 @@ bool PerformanceManager::isMeasuringPerformance() const {
|
||||
return _doPerformanceMeasurements;
|
||||
}
|
||||
|
||||
void PerformanceManager::outputLogs() {
|
||||
for (size_t i = 0; i < 30; i++) LINFO("Outputting logs");
|
||||
}
|
||||
|
||||
PerformanceLayout* PerformanceManager::performanceData() {
|
||||
void* ptr = _performanceMemory->memory();
|
||||
return reinterpret_cast<PerformanceLayout*>(ptr);
|
||||
|
||||
Reference in New Issue
Block a user