Control based render surface flashes when render is delayed
-
- Posts: 57
- Joined: Sat Oct 11, 2014 11:07 pm
Control based render surface flashes when render is delayed
I am using a surface embedded on a qt widget (analogous to a control). I am having a problem when qt draws a menu in that there is a slight delay while the menu is being drawn. This delay causes the control on which the scene is drawn to flash because the surface is not rendered. I am ok with missing a couple frames during this time but I don't want the flash effect. I would much rather have it skip a render cycle. Any insights on how to get rid of it? I have already overridden the paint event (which draws nothing and instead renders the scene).
Re: Control based render surface flashes when render is dela
Do you trying to embed opengl within QT or something more complex?
As far as I know there was already some discussion about Qt and Irrlicht but I don't know if that is what you exactly need.
in example:
http://irrlicht.sourceforge.net/forum/v ... =4&t=46588
As far as I know there was already some discussion about Qt and Irrlicht but I don't know if that is what you exactly need.
in example:
http://irrlicht.sourceforge.net/forum/v ... =4&t=46588
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
-
- Posts: 57
- Joined: Sat Oct 11, 2014 11:07 pm
Re: Control based render surface flashes when render is dela
Thanks for the pointer. At first glance the only thing that I haven't done that was done in this code was to emit a "repainted" signal. However that does not seem to be a Qt specific signal and was probably one specifically designed for his code. There is also another discussion linked in the discussion you linked so I will have to check that out. I will post again if I don't find a solution.
-
- Posts: 57
- Joined: Sat Oct 11, 2014 11:07 pm
Re: Control based render surface flashes when render is dela
The article referred to in the article you recommended is here and helped me fix the problem although its implications at this point are unclear (since I am still developing the interface itself and not the graphics engine). The settings that were suggested by this article actually made things worse (I was actually seeing through the current widget to the last used widget beneath it) but it got me playing around with different attributes. I found that the Qt::WA_ForceUpdatesDisabled gets rid of the problem. However, time will tell if the other attributes mentioned and/or others are important as well.