mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Add basic instrumentation options to the renderengine and globebrowsing module
Instrumentation is disabled on default, but can be enabled in CMake
This commit is contained in:
@@ -187,7 +187,21 @@ private:
|
||||
properties::TriggerProperty _takeScreenshot;
|
||||
bool _shouldTakeScreenshot = false;
|
||||
properties::BoolProperty _applyWarping;
|
||||
properties::BoolProperty _showFrameNumber;
|
||||
properties::BoolProperty _showFrameInformation;
|
||||
#ifdef OPENSPACE_WITH_INSTRUMENTATION
|
||||
struct FrameInfo {
|
||||
uint64_t iFrame;
|
||||
double deltaTime;
|
||||
double avgDeltaTime;
|
||||
};
|
||||
|
||||
struct {
|
||||
std::vector<FrameInfo> frames;
|
||||
uint64_t lastSavedFrame = 0;
|
||||
uint16_t saveEveryNthFrame = 2048;
|
||||
} _frameInfo;
|
||||
properties::BoolProperty _saveFrameInformation;
|
||||
#endif // OPENSPACE_WITH_INSTRUMENTATION
|
||||
properties::BoolProperty _disableMasterRendering;
|
||||
|
||||
properties::FloatProperty _globalBlackOutFactor;
|
||||
@@ -205,7 +219,7 @@ private:
|
||||
|
||||
std::vector<ghoul::opengl::ProgramObject*> _programs;
|
||||
|
||||
std::shared_ptr<ghoul::fontrendering::Font> _fontBig;
|
||||
std::shared_ptr<ghoul::fontrendering::Font> _fontFrameInfo;
|
||||
std::shared_ptr<ghoul::fontrendering::Font> _fontInfo;
|
||||
std::shared_ptr<ghoul::fontrendering::Font> _fontDate;
|
||||
std::shared_ptr<ghoul::fontrendering::Font> _fontLog;
|
||||
|
||||
Reference in New Issue
Block a user