[osg-users] Check paging status

Mike Connell michael.connell at gmail.com
Mon Jun 19 10:24:47 PDT 2017


osgDB::DatabasePager : getFileRequestListSize(),
getDataToCompileListSize(), getDataToMergeListSize(),
getRequestsInProgress() and perhaps a call to requiresUpdateSceneGraph()
should get you there.

/Mike

On 19 June 2017 at 15:11, Hannes Naude <naude.jj at gmail.com> wrote:

> Hi all
>
> I am using OSG and osgEarth in a simulation where a lot of data is being
> loaded. Now, the normal behaviour is to load resources in separate
> background threads, so that the rendering thread does not stutter when
> large resources are being loaded. However, in my use case fidelity is more
> important than real-time behaviour. I would prefer if I could somehow check
> the status of the resource paging and only continue rendering when all
> resources have been loaded. I have browsed the examples and did some
> Googling, but could not find anything that appears directly related. If
> someone could point me toward an applicable tut/example/ or part of the
> API, it would be greatly appreciated.
>
> Regards
> Hannes Naude
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170619/71edab71/attachment-0003.htm>


More information about the osg-users mailing list