Skip to content

Commit 129bb34

Browse files
committed
disable tracy gpu collection
1 parent 03e4d70 commit 129bb34

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Source/Managers/WindowMan.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "glm/gtc/matrix_transform.hpp"
1616
#include "glm/gtc/epsilon.hpp"
1717
#include "tracy/Tracy.hpp"
18-
#include "tracy/TracyOpenGL.hpp"
1918

2019
#ifdef __linux__
2120
#include "Resources/cccp.xpm"
@@ -206,7 +205,6 @@ void WindowMan::InitializeOpenGL() {
206205
GL_CHECK(glGenTextures(1, &m_BackBuffer32Texture));
207206
GL_CHECK(glGenTextures(1, &m_ScreenBufferTexture));
208207
GL_CHECK(glGenFramebuffers(1, &m_ScreenBufferFBO));
209-
TracyGpuContext;
210208
}
211209

212210
void WindowMan::CreateBackBufferTexture() {
@@ -697,7 +695,6 @@ void WindowMan::ClearRenderer(bool clearFrameMan) {
697695
}
698696

699697
void WindowMan::UploadFrame() {
700-
TracyGpuZone("Upload Frame");
701698
GL_CHECK(glDisable(GL_DEPTH_TEST));
702699

703700
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_ScreenBufferFBO));
@@ -709,22 +706,19 @@ void WindowMan::UploadFrame() {
709706

710707
GL_CHECK(glEnable(GL_BLEND));
711708
if (m_DrawPostProcessBuffer) {
712-
TracyGpuZone("Upload Post Process Buffer");
713709
GL_CHECK(glBindTexture(GL_TEXTURE_2D, g_PostProcessMan.GetPostProcessColorBuffer()));
714710
GL_CHECK(glActiveTexture(GL_TEXTURE1));
715711
GL_CHECK(glBindTexture(GL_TEXTURE_2D, m_BackBuffer32Texture));
716712
GL_CHECK(glPixelStorei(GL_UNPACK_ALIGNMENT, 4));
717713
GL_CHECK(glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, g_FrameMan.GetBackBuffer32()->w, g_FrameMan.GetBackBuffer32()->h, GL_RGBA, GL_UNSIGNED_BYTE, g_FrameMan.GetBackBuffer32()->line[0]));
718714
} else {
719-
TracyGpuZone("Upload no Post Process Buffer");
720715
GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0));
721716
GL_CHECK(glActiveTexture(GL_TEXTURE1));
722717
GL_CHECK(glBindTexture(GL_TEXTURE_2D, m_BackBuffer32Texture));
723718
GL_CHECK(glPixelStorei(GL_UNPACK_ALIGNMENT, 4));
724719
GL_CHECK(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, g_FrameMan.GetBackBuffer32()->w, g_FrameMan.GetBackBuffer32()->h, 0, GL_RGBA, GL_UNSIGNED_BYTE, g_FrameMan.GetBackBuffer32()->line[0]));
725720
}
726721
{
727-
TracyGpuZone("Setup Draw Screen");
728722
GL_CHECK(glBindVertexArray(m_ScreenVAO));
729723
m_ScreenBlitShader->Use();
730724
m_ScreenBlitShader->SetInt(m_ScreenBlitShader->GetTextureUniform(), 0);
@@ -739,13 +733,11 @@ void WindowMan::UploadFrame() {
739733
GL_CHECK(glBindTexture(GL_TEXTURE_2D, m_ScreenBufferTexture));
740734
}
741735
if (m_MultiDisplayWindows.empty()) {
742-
TracyGpuZone("Swap Window");
743736
GL_CHECK(glViewport(m_PrimaryWindowViewport->x, m_PrimaryWindowViewport->y, m_PrimaryWindowViewport->w, m_PrimaryWindowViewport->h));
744737
m_ScreenBlitShader->SetMatrix4f(m_ScreenBlitShader->GetTransformUniform(), glm::mat4(1.0f));
745738
GL_CHECK(glDrawArrays(GL_TRIANGLE_STRIP, 0, 4));
746739
SDL_GL_SwapWindow(m_PrimaryWindow.get());
747740
} else {
748-
TracyGpuZone("Swap Multi Display");
749741
for (size_t i = 0; i < m_MultiDisplayWindows.size(); ++i) {
750742
SDL_GL_MakeCurrent(m_MultiDisplayWindows.at(i).get(), m_GLContext.get());
751743
int windowW, windowH;
@@ -757,6 +749,5 @@ void WindowMan::UploadFrame() {
757749
SDL_GL_SwapWindow(m_MultiDisplayWindows.at(i).get());
758750
}
759751
}
760-
TracyGpuCollect;
761752
FrameMark;
762753
}

0 commit comments

Comments
 (0)