Merge pull request #19428 from tritao/base-tracy-profiler

Base: Add Tracy frame profiling support.
This commit is contained in:
Chris Hennes
2025-03-14 04:12:05 +00:00
committed by GitHub
14 changed files with 239 additions and 12 deletions

View File

@@ -1,3 +1,6 @@
if(BUILD_TRACY_FRAME_PROFILER)
add_definitions(-DBUILD_TRACY_FRAME_PROFILER)
endif()
add_subdirectory(App)
if(BUILD_GUI)

View File

@@ -24,6 +24,10 @@ set(PartGui_LIBS
MatGui
)
if(BUILD_TRACY_FRAME_PROFILER)
list(APPEND PartGui_LIBS TracyClient)
endif()
if(MSVC)
include_directories(
${CMAKE_SOURCE_DIR}/src/3rdParty/OpenGL/api

View File

@@ -68,6 +68,8 @@
# include <Inventor/C/glue/gl.h>
#endif
#include <Base/Profiler.h>
#include <Gui/SoFCInteractiveElement.h>
#include <Gui/Selection/SoFCSelectionAction.h>
#include <Gui/Selection/SoFCUnifiedSelection.h>
@@ -493,6 +495,8 @@ void SoBrepFaceSet::renderColoredArray(SoMaterialBundle *const materials)
void SoBrepFaceSet::GLRender(SoGLRenderAction *action)
{
ZoneScoped;
//SoBase::staticDataLock();
static bool init = false;
if (!init) {