20,741
edits
(→Views) |
|||
Line 138: | Line 138: | ||
=== DatabasePager === | === DatabasePager === | ||
The OSG has the osgDB::DatabasePager which sole purpose is to do | |||
multi-threaded paging of databases. The osgViewer::Viewer and | |||
CompositeViewer both support it out of the box, as did | |||
osgProducer::Viewer before it. There is nothing you need to do in | |||
your app other than load a paged database. Paged dabases in the OSG | |||
are ones that contain osg::PagedLOD node or loaded via the TXP plugin.<ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg01750.html</ref> | |||
* osgViewer is set up so that the Scene object manages the scene graph and the database pager assocaited with that scene graph. There is one Scene object per scene graph, and multiple views should share the same Scene instance if there share the same scene graph. Virtue of this sharing the Scene shouldn't go out of scope while at lest on View still references, and neither should its associated DatabasePager go out of scope either.<ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg04006.html</ref> | * osgViewer is set up so that the Scene object manages the scene graph and the database pager assocaited with that scene graph. There is one Scene object per scene graph, and multiple views should share the same Scene instance if there share the same scene graph. Virtue of this sharing the Scene shouldn't go out of scope while at lest on View still references, and neither should its associated DatabasePager go out of scope either.<ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg04006.html</ref> | ||
* osgViewer::Viewer/CompositeViewer all have the DatabasePager built into them, and will automatically run the database pager thread on demand and take care of all the operations required to manage a paged database.<ref>https://groups.google.com/d/msg/osg-users/eMh8DfsKZhQ/F1V5BZS3hLEJ</ref> | * osgViewer::Viewer/CompositeViewer all have the DatabasePager built into them, and will automatically run the database pager thread on demand and take care of all the operations required to manage a paged database.<ref>https://groups.google.com/d/msg/osg-users/eMh8DfsKZhQ/F1V5BZS3hLEJ</ref> |