1
0
Fork 0

Sentry: track compositor on/off

This commit is contained in:
Automatic Release Builder 2020-08-26 14:01:30 +01:00 committed by James Turner
parent dfcae619cf
commit db4e71955e
2 changed files with 8 additions and 0 deletions

View file

@ -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");

View file

@ -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;
}