I’m doing double buffered drawing to display video using the BufferedWindow class from
http://wiki.wxpython.org/DoubleBufferedDrawing
unfortunately the image flickers horribly, it looks like image tearing. To investigate the problem I modified the BufferedWindow demonstration code to include a timer that emulated the New Drawing button. Even at a very slow ( 0.5 second) redraw rates there is noticeable flicker at the top of the display. The effect is worse if I enlarge the window. This does not look as if it is a viable approach. Any suggestions as to how I can achieve flicker free video display??
Thanks
I'm doing double buffered drawing to display video using the BufferedWindow
class from
DoubleBufferedDrawing - wxPyWiki
I wrote that a long time ago -- so there may be some changes in wx since
then. If you do figure it out, please update that page.
But I'm guessing this has to do with the background getting erased in Paint
Events. You might try binding, and then not calling skip. something like:
self.Bind(EVT_ERASE_BACKGROUND, lambda evt: None)
HTH,
-Chris
···
On Tue, Mar 3, 2015 at 10:26 AM, <peter.west@ucl.ac.uk> wrote:
unfortunately the image flickers horribly, it looks like image tearing.
To investigate the problem I modified the BufferedWindow demonstration code
to include a timer that emulated the New Drawing button. Even at a very
slow ( 0.5 second) redraw rates there is noticeable flicker at the top of
the display. The effect is worse if I enlarge the window. This does not
look as if it is a viable approach. Any suggestions as to how I can
achieve flicker free video display??
Thanks
--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
Thanks Chris
That fixed it!
could you post the fix to the Wiki?
-Chris
···
On Wed, Mar 4, 2015 at 3:22 AM, <peter.west@ucl.ac.uk> wrote:
On Tuesday, 3 March 2015 18:26:30 UTC, peter...@ucl.ac.uk wrote:
I'm doing double buffered drawing to display video using the BufferedWindow
class from
DoubleBufferedDrawing - wxPyWiki
unfortunately the image flickers horribly, it looks like image tearing.
To investigate the problem I modified the BufferedWindow demonstration code
to include a timer that emulated the New Drawing button. Even at a very
slow ( 0.5 second) redraw rates there is noticeable flicker at the top of
the display. The effect is worse if I enlarge the window. This does not
look as if it is a viable approach. Any suggestions as to how I can
achieve flicker free video display??
Thanks
--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov