Forum Replies Created
-
AuthorPosts
-
fspadoniBlocked
Yes I used the Multithreading plugin
The plugin provides just a task scheduler to run concurrently tasks and few basic examples of parallelized components.
The scheduler uses the boost thread library internally but you don’t have to deal with threads.
You should decompose your algorithm in tasks.
A task is just a function that can run concurrently with other tasks.Federico
fspadoniBlockedHi Garibalde,
ParallelVisitorScheduler was developed for a project to parallelize SOFA using KAAPI multithreading library http://kaapi.gforge.inria.fr/ but there is no more support.
As far as I know no one is still working on it.
I implemented in my project some basic task based parallelism in Sofa using the Multithreading plugin.
That’s not a default SOFA plugin and it has a boost thread library dependency.
Maybe it can be helpfulFederico
fspadoniBlockedHi Zabolian,
In my project I needed to display the Sofa scene in two or more different windows and I faced your second problem.
In my project I created a second window using Qt and the OpenGL viewport using QGLWidget.
In the Sofa Qt GUI the sofa::gui:qt::viewer::qt::QtViewer class inherits from QGLWidget.To display the scene in a different window you have to share the OpenGL display lists and texture objects between the QGLWidgets. So you have to create the QGLWidget of the second window passing in the constructor the pointer to the QGLWidget of the main window as shareWidget parameter. (3rd parameter)
QGLWidget::QGLWidget(const QGLFormat & format, QWidget * parent = 0, const QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0)
http://doc.qt.io/qt-4.8/qglwidget.html#QGLWidget
Hope it helps
Federico -
AuthorPosts