On Sun, 6 Nov 2022 15:15:11 +0100 Eric Jensen wrote:
EJ> i just updated my few months old wx codebase to latest trunk, and the
EJ> above mentioned change caused (and still does) me some problems.
EJ>
EJ> In my application i display video streams, with either VLC or
EJ> wxWebViewEdge.
EJ>
EJ> This can be embedded in a GUI, or in a dedicated wxDialog in
EJ> fullscreen mode.
EJ>
EJ> Before the change, these 4 scenarios all worked fine.
EJ> But now:
EJ>
EJ> VLC - windowed - low fps
EJ> VLC - fullscreen - black screen
EJ>
EJ> wxWebViewEdge - windowed - works
EJ> wxWebViewEdge - fullscreen - white screen
EJ>
EJ> I was able to fix two of these by adding SetDoubleBuffered(false) at
EJ> various locations. I wasn't able to fix the "vlc - windowed - low fps".
Do I understand correctly that this was fixed by calling
MSWDisableComposited()?
EJ> It would have been great if this feature could be disabled at either
EJ> run- or compile time.
I really don't want to add a compile-time option for this, but it would be
nice to turn it off automatically for the known problematic cases. In
particular, I suspect that we need to always do it for full screen windows,
right? But how could we detect the VLC/windows case, would you have any
idea?
I'm also not sure if SetDoubleBuffered(false) should be made to do the
same thing as MSWDisableComposited() does because it seems wrong to use
this function under the other platforms to work around a MSW-specific
issue.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/