[osg-users] Frame rate improvement

Robert Osfield robert.osfield at gmail.com
Fri Sep 22 03:53:48 PDT 2017


Hi Ale,

Having many thousands of transform in the scene graph will be very
expensive on cull performance as each transform require the view frustum,
modelview and projection matrices and other cull paramters to be cloned and
transformed into the local coordinate frame.  Thosudans of transforms and
performance is likely to be fine, ten's of thousands are you'll likely
start overwhleming the cull traversal.

How best to tackle the task will depend upon the exact nature of the scene
you are trying to represent.  Other that a CAD model you haven't provided
any description of what you have so at this point I can't recommend the
best route forward.

As a general note, make sure you do these tests with release build as debug
totally throws off CPU times and can easily be 10 to 100x slower (depending
on compiler suite and type of operation.)

Robert.

On 22 September 2017 at 10:44, Ale Maro <sasha71 at teletu.it> wrote:

> Hi,
>
> until now I improved visualization performance of my application in
> several way thanks to your suggestions.
> Now I would like to go another step ahead.
>
> May be this is common topics but it is not clear to me how to solve it.
>
> I have a CAD-like application.
> Potentially a scene can contain objects with thousand of sub-objects, each
> one can be managed separately (e.g. I can select, modify or delete a
> sub-object). This means that the scene contains nodes with thousand of
> children and each children is a MatrixTransform with a geometry children.
> Typically children are small geometries and root nodes can be huge
> geometries.
>
> I would like to improve frame rate for this type of scene.
>
> What I see in a sample scene is (view is single threaded):
>
> Cull: ~897 (after some time often it go down to 300/400, I do not know why)
> Draw: ~37
> GPU: ~20
> Frame rate: 1 FPS
>
> The same scene merged in one node gives me:
>
> Cull: ~0.30
> Draw: ~0.45
> GPU: ~29
> Frame rate: 32 FPS
>
> Do you think I can improve the performance without merging nodes?
>
> Thanks a lot.
>
> Ale
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72047#72047
>
>
>
>
>
> _______________________________________________
> 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/20170922/243fa6c8/attachment.htm>


More information about the osg-users mailing list