hroch User
Joined: 14 Oct 2011 Posts: 54
|
Posted: Mon Nov 12, 2012 2:39 pm Post subject: qt rendering thread |
|
|
Hi,
Current state GraphicsWindowQt uses QTimer and function osgQt::setViewer for rendering traversal. It's clever, because Qt and osg events get correctly dispatched. But if fps drops, Qt Gui lags, mainly because some events (menu for example) will request redraw. I want to render scene in different thread, so it will not slow down my app when render slow frame. And maybe reset rendering if I for example move my scene.
How to achieve that ?
Thank you!
Cheers,
Filip |
|
Kilazi Newbie
Joined: 16 Aug 2012 Posts: 15
|
Posted: Wed Nov 14, 2012 7:46 am Post subject: |
|
|
Hello!
Have you looked into OsgQtBrowser and OsgQtWidgets examples? |
|
hroch User
Joined: 14 Oct 2011 Posts: 54
|
Posted: Mon Nov 19, 2012 9:02 am Post subject: |
|
|
Hi,
Ok, Thanks, I get the idea behind it. Do I have to worry about thread safety or not ?
Cheers,
Filip |
|