[vtk-developers] Patch for wxVTKRenderWindow.py and wxVTKRenderWindowInteractor.py

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Wed Nov 5 08:22:11 EST 2008


Chris Kruszynski wrote:
> I just noticed that wxVTKRenderWindowInteractor started flickering and 
> being very slow.
> 
> Apparently as of some version of wxPython, the GLCanvas widget by 
> default creates an OpenGL context without double buffering, so if that 
> widget is used as the base class for wxVTKRenderWindowInteractor, it 
> will explicitly need to tell GLCanvas to enable double buffering.
> 
> wxVTKRenderWindow exhibits the same behaviour.
> 
> This patch fixes both wxVTKRenderWindow and wxVTKRenderWindowInteractor: 
> if the base class is GLCanvas, it always enables double buffering.

Thanks!  If no one objects I can checkin a modified version of this 
patch by the weekend.

cheers,
prabhu



More information about the vtk-developers mailing list