From 596e0a20ba80c8502b936cb41b0fa169def214d2 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 17 Jan 2007 08:34:28 +0000 Subject: [PATCH] To customize debug --- src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx index 5954c808..fba3a746 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx @@ -49,6 +49,8 @@ #include #include +//#define _DEBUG_RENDERING_PERFORMANCE_ + #ifndef GLX_GLXEXT_LEGACY #define GLX_GLXEXT_LEGACY #endif @@ -542,13 +544,14 @@ void VISU_OpenGLPointSpriteMapper::RenderPiece(vtkRenderer *ren, vtkActor *act) act->GetProperty()->GetMTime() > this->BuildTime || ren->GetRenderWindow() != this->LastWindow) { - /* To control when the mapper is recalculated +#ifdef _DEBUG_RENDERING_PERFORMANCE_ + // To control when the mapper is recalculated cout<<"VISU_OpenGLPointSpriteMapper::RenderPiece - " <<(this->GetMTime() > this->BuildTime)<<"; " <<(input->GetMTime() > this->BuildTime)<<"; " <<(act->GetProperty()->GetMTime() > this->BuildTime)<<"; " <Colors as side effect this->MapScalars( act->GetProperty()->GetOpacity() ); -- 2.39.2