Sentry: track compositor on/off
This commit is contained in:
parent
dfcae619cf
commit
db4e71955e
2 changed files with 8 additions and 0 deletions
|
@ -743,6 +743,10 @@ int fgMainInit( int argc, char **argv )
|
|||
fntInit();
|
||||
globals->get_renderer()->preinit();
|
||||
|
||||
#if defined(ENABLE_COMPOSITOR)
|
||||
flightgear::addSentryTag("compositor", "yes");
|
||||
#endif
|
||||
|
||||
if (fgGetBool("/sim/ati-viewport-hack", true)) {
|
||||
SG_LOG(SG_GENERAL, SG_WARN, "Enabling ATI/AMD viewport hack");
|
||||
flightgear::addSentryTag("ati-viewport-hack", "enabled");
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
#include "FGEventHandler.hxx"
|
||||
#include "WindowBuilder.hxx"
|
||||
#include "WindowSystemAdapter.hxx"
|
||||
#include <Main/sentryIntegration.hxx>
|
||||
|
||||
#if defined(HAVE_QT)
|
||||
#include "GraphicsWindowQt5.hxx"
|
||||
|
@ -220,6 +221,8 @@ void fgOSOpenWindow(bool stencil)
|
|||
|
||||
std::string mode;
|
||||
mode = fgGetString("/sim/rendering/multithreading-mode", "SingleThreaded");
|
||||
flightgear::addSentryTag("osg-thread-mode", mode);
|
||||
|
||||
if (mode == "AutomaticSelection")
|
||||
viewer->setThreadingModel(osgViewer::Viewer::AutomaticSelection);
|
||||
else if (mode == "CullDrawThreadPerContext")
|
||||
|
@ -338,6 +341,7 @@ int fgOSMainLoop()
|
|||
viewer->frame( globals->get_sim_time_sec() );
|
||||
}
|
||||
|
||||
flightgear::addSentryBreadcrumb("main loop exited", "info");
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue