Andrea Gavana wrote:

>    def OnPaint(self, event):
>        """ Handles the wx.EVT_PAINT event for wxVTKRenderWindow. """
> 
>        # AG: Is there any possible advantage in using
>        # wx.BufferedPaintDC instead of wx.PaintDC?
>        dc = wx.PaintDC(self)
>        self.Render()
> 
> I don't know very well the internal magic of VTK, but would it make
> any difference (in terms of speed/refresh) using a wx.BufferedPaintDC
> instead of a plain wx.PaintDC? In other words, would a double
> buffering inside wxPython made any difference in performace?
> 

Doubtful.  IIRC, VTK doesn't actually use the DC, it is just created to 
let Windows know that the event has been handled so it doesn't 
immediately resend it.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to