From e0dbd25cb79e2f21f9b843bc8c459d4df401b448 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Fri, 29 Sep 2017 07:50:48 -0700 Subject: [PATCH] remove some unneeded/debug BT_PROFILE markers --- .../OpenGLWindow/GLInstancingRenderer.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/OpenGLWindow/GLInstancingRenderer.cpp b/examples/OpenGLWindow/GLInstancingRenderer.cpp index a92500af7..9d47827c2 100644 --- a/examples/OpenGLWindow/GLInstancingRenderer.cpp +++ b/examples/OpenGLWindow/GLInstancingRenderer.cpp @@ -622,22 +622,22 @@ void GLInstancingRenderer::writeTransforms() { { - B3_PROFILE("b3Assert(glGetError() 1"); + //B3_PROFILE("b3Assert(glGetError() 1"); b3Assert(glGetError() ==GL_NO_ERROR); } { - B3_PROFILE("glBindBuffer"); + //B3_PROFILE("glBindBuffer"); glBindBuffer(GL_ARRAY_BUFFER, m_data->m_vbo); } { - B3_PROFILE("glFlush()"); + //B3_PROFILE("glFlush()"); //without the flush, the glBufferSubData can spike to really slow (seconds slow) glFlush(); } { - B3_PROFILE("b3Assert(glGetError() 2"); + //B3_PROFILE("b3Assert(glGetError() 2"); b3Assert(glGetError() ==GL_NO_ERROR); } @@ -666,22 +666,22 @@ void GLInstancingRenderer::writeTransforms() { // printf("m_data->m_totalNumInstances = %d\n", m_data->m_totalNumInstances); { - B3_PROFILE("glBufferSubData pos"); + //B3_PROFILE("glBufferSubData pos"); glBufferSubData( GL_ARRAY_BUFFER,m_data->m_maxShapeCapacityInBytes,m_data->m_totalNumInstances*sizeof(float)*4, &m_data->m_instance_positions_ptr[0]); } { - B3_PROFILE("glBufferSubData orn"); +// B3_PROFILE("glBufferSubData orn"); glBufferSubData( GL_ARRAY_BUFFER,m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE,m_data->m_totalNumInstances*sizeof(float)*4, &m_data->m_instance_quaternion_ptr[0]); } { - B3_PROFILE("glBufferSubData color"); +// B3_PROFILE("glBufferSubData color"); glBufferSubData( GL_ARRAY_BUFFER,m_data->m_maxShapeCapacityInBytes+ POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE, m_data->m_totalNumInstances*sizeof(float)*4, &m_data->m_instance_colors_ptr[0]); } { - B3_PROFILE("glBufferSubData scale"); +// B3_PROFILE("glBufferSubData scale"); glBufferSubData( GL_ARRAY_BUFFER, m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE+COLOR_BUFFER_SIZE,m_data->m_totalNumInstances*sizeof(float)*3, &m_data->m_instance_scale_ptr[0]); } @@ -756,12 +756,12 @@ void GLInstancingRenderer::writeTransforms() #endif { - B3_PROFILE("glBindBuffer 2"); +// B3_PROFILE("glBindBuffer 2"); glBindBuffer(GL_ARRAY_BUFFER, 0);//m_data->m_vbo); } { - B3_PROFILE("b3Assert(glGetError() 4"); + // B3_PROFILE("b3Assert(glGetError() 4"); b3Assert(glGetError() ==GL_NO_ERROR); }