From: apo Date: Wed, 17 Jan 2007 08:34:28 +0000 (+0000) Subject: To customize debug X-Git-Tag: WP1_2_3_17-01-2007_Data_format_at_entry_of_visualization_pipeline~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=596e0a20ba80c8502b936cb41b0fa169def214d2;p=modules%2Fvisu.git To customize debug --- 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() );