mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 11:18:22 -05:00
More work on performance measuring in imgui
This commit is contained in:
@@ -34,6 +34,10 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace ghoul {
|
||||
class SharedMemory;
|
||||
}
|
||||
|
||||
namespace openspace {
|
||||
|
||||
namespace properties {
|
||||
@@ -67,10 +71,20 @@ public:
|
||||
static scripting::ScriptEngine::LuaLibrary luaLibrary();
|
||||
|
||||
private:
|
||||
void renderMainWindow();
|
||||
|
||||
void renderPropertyWindow();
|
||||
void renderPerformanceWindow();
|
||||
|
||||
bool _isEnabled;
|
||||
|
||||
bool _showPropertyWindow;
|
||||
bool _showPerformanceWindow;
|
||||
bool _showHelp;
|
||||
|
||||
ghoul::SharedMemory* _performanceMemory;
|
||||
float _minMaxValues[2];
|
||||
|
||||
std::set<properties::Property*> _boolProperties;
|
||||
std::set<properties::Property*> _intProperties;
|
||||
std::set<properties::Property*> _floatProperties;
|
||||
|
||||
@@ -56,6 +56,7 @@ public:
|
||||
virtual bool deinitialize() = 0;
|
||||
|
||||
virtual bool isReady() const = 0;
|
||||
bool isEnabled() const;
|
||||
|
||||
void setBoundingSphere(const PowerScaledScalar& boundingSphere);
|
||||
const PowerScaledScalar& getBoundingSphere();
|
||||
|
||||
@@ -43,6 +43,8 @@ class ScreenLog;
|
||||
|
||||
class RenderEngine {
|
||||
public:
|
||||
static const std::string PerformanceMeasurementSharedData;
|
||||
|
||||
RenderEngine();
|
||||
~RenderEngine();
|
||||
|
||||
@@ -64,6 +66,7 @@ public:
|
||||
void toggleVisualizeABuffer(bool b);
|
||||
|
||||
void setPerformanceMeasurements(bool performanceMeasurements);
|
||||
bool doesPerformanceMeasurements() const;
|
||||
|
||||
void serialize(SyncBuffer* syncBuffer);
|
||||
void deserialize(SyncBuffer* syncBuffer);
|
||||
|
||||
Reference in New Issue
Block a user