[vtkusers] Call to Render on WM_PAINT in vtkWin32RenderWindowInteractor

Xabi Riobe xabivtk at gmail.com
Fri Oct 2 08:43:15 EDT 2015


Hi,

Does someone know why in vtkWin32RenderWindowInteractor::vtkHandleMessage2
there is the Render() call on WM_PAINT:

case WM_PAINT:
  me->Render();
  return CallWindowProc(me->OldProc,hWnd,uMsg,wParam,lParam);
  break;

since CallWindowProc will lead to vtkWin32OpenGLRenderWindow::MessageProc
that performs the rendering on WM_PAINT

So we have a double rendering that can be slow...

For example, resize a render window and you can see this happening.

Thanks for any info about that
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151002/2370fa0b/attachment.html>


More information about the vtkusers mailing list