Merge pull request #19428 from tritao/base-tracy-profiler
Base: Add Tracy frame profiling support.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
if(BUILD_TRACY_FRAME_PROFILER)
|
||||
add_definitions(-DBUILD_TRACY_FRAME_PROFILER)
|
||||
endif()
|
||||
|
||||
add_subdirectory(App)
|
||||
if(BUILD_GUI)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user