Dear list,

we are currently stumped by the following problem: Our application needs
to display several OSG scenes in different Qt windows/widgets, e.g. a
sphere in one window and a box in another one. We want users to be able
to interact with the scenes. Hence, we followed the osgViewerQt example
and implemented a widget that contains an osgViewer::Viewer for rendering.

The problems now start when we create multiple widget instances. Since
each widget uses a QTimer to enforce updates to the viewer, the
performance of our program rapidly decreases --- with 5 different
widgets (all showing a simple box) open, the program is hardly usable
any more. Clicking on a button in the Qt GUI takes multiple seconds to
process, even on a multicore system.

So, what is the best way of creating multiple Qt widgets that depict
different OSG scenes without suffering from this performance impact?

We would prefer a solution akin to the osgviewerGTK example. Here,
updates to the viewer are only performed upon user interaction. What
would be the easiest way of replicating this behaviour for Qt? Are we
missing something that is patently obvious?

Kind regards,
        Bastian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to