[Osggtk-users] Laggy behaviour of osgViewer::ViewerGtkmm
Status: Beta
Brought to you by:
rvinyard
From: patrick <ps...@gm...> - 2009-10-20 08:21:13
|
Hi. After searching for a way to embed osg into a gtkmm program, I found your great library. I installed all the stuff and everything works quite fine. However, after generating a rather big amount of triangles (~70k), or even when loading the "cessnafire.osg", I perceive a very slowing behaviour of the widget. Using the osgviewerGtkmm tool from your examples leads to the same observation which I have in my program (so i'm fairly sure, it's not directly my fault). All in all, it's impossible to use the widget, because every mouse input is buffered, resulting in an animation-like interaction (lagged by some seconds, depending on the data). Using the original osgviewer tool on the data, or using osgViewer::Viewer in the program, each of the example data I tried runs fast and smooth. So, do you have any idea why the ViewerGtkmm is so slow on my machine for reasonable data sets? I also observed that all the gui stuff ( buttons etc.) is not rendered during the lag. Could all this be up to the gui in some way. As in your examples, I do not use different threads or the like. The lag heavily depends on the graphic complexity, but increases very fast (while the same data runs perfectly in the osgviewer tool or using the osgViewer::Viewer directly). Thanks for your efforts. Best regards! Patrick |