Commit 76ea1acc authored by Dave DeMarle's avatar Dave DeMarle

Take timestamps of key portions of parallel rendering algorithm.

parent ab5f4c16
......@@ -65,6 +65,7 @@ void vtkCompositeRenderManager::PrintSelf(ostream &os, vtkIndent indent)
//----------------------------------------------------------------------------
void vtkCompositeRenderManager::PreRenderProcessing()
{
vtkTimerLog::MarkStartEvent("Compositing");
// Turn swap buffers off before the render so the end render method has a
// chance to add to the back buffer.
if (this->UseBackBuffer)
......@@ -83,6 +84,7 @@ void vtkCompositeRenderManager::PostRenderProcessing()
if (!this->UseCompositing || this->CheckForAbortComposite())
{
vtkTimerLog::MarkEndEvent("Compositing");
return;
}
......@@ -121,6 +123,8 @@ void vtkCompositeRenderManager::PostRenderProcessing()
this->RenderWindow->SwapBuffersOn();
}
this->RenderWindow->Frame();
vtkTimerLog::MarkEndEvent("Compositing");
}
......@@ -26,6 +26,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkImageImport.h"
#include "vtkPNGWriter.h"
#include "vtkOpenGLTexture.h"
#include "vtkTimerLog.h"
#ifndef VTK_IMPLEMENT_MESA_CXX
# include "vtkOpenGL.h"
......@@ -225,6 +226,8 @@ int vtkOpenGLRenderer::GetDepthPeelingHigherLayer()
// Concrete open gl render method.
void vtkOpenGLRenderer::DeviceRender(void)
{
vtkTimerLog::MarkStartEvent("OpenGL Dev Render");
// Do not remove this MakeCurrent! Due to Start / End methods on
// some objects which get executed during a pipeline update,
// other windows might get rendered since the last time
......@@ -246,6 +249,8 @@ void vtkOpenGLRenderer::DeviceRender(void)
// clean up the model view matrix set up by the camera
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
vtkTimerLog::MarkEndEvent("OpenGL Dev Render");
}
// ----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment