[osg-users] Fwd: Check paging status

Hannes Naude naude.jj at gmail.com
Tue Jun 20 05:56:17 PDT 2017


Thanks Mike, that got me on the right track.

And for the benefit of future users with similar questions, I would just
add that the osgautocapture example provides a nice example of how to use
the osgDB::DatabasePager class that Mike refers to, to achieve exactly this.

Regards
Hannes


---------- Forwarded message ----------
From: Mike Connell <michael.connell at gmail.com>
Date: Mon, Jun 19, 2017 at 7:24 PM
Subject: Re: [osg-users] Check paging status
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>


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
>
>

_______________________________________________
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/20170620/a2f01af5/attachment-0003.htm>


More information about the osg-users mailing list