Robert, Jarome

I guess Jarome wants to compare the rendering time (i.e. time for rendering one frame) with the scene containing the first node type vs. the scene containing the second node type. Unfortunately I cannot help here directly, but I know that there is a kind of Stats object (used by the StatsHandler), which could be retrieved every frame. From the stats one could get the raw times for cull- and render-traversal for the last frame. Maybe this is a pointer into the right direction and someone else can give some more detailed advices.

cheers
Sebastian
Hi Jarome,

I don't really know what you are actually asking.  First you asking
about time of rendering, now you want to compare nodes, but don't
specify how you want to compare them.  There is no way I or anyone
else can provide an answer.

Robert.

On 26 June 2012 00:40, J.YoungStone <[email protected]> wrote:
I think I mean what you said ( almost exactly ).

Specifically, I want to compare common node and proxy node.

Namely, I want to compare the code above and the code below.


Code:
#include <osg/ProxyNode>
#include <osgViewer/Viewer>

int main( int argc, char** argv )
{
        osg::ref_ptr<osg::ProxyNode> root = new osg::ProxyNode;

        root->setFileName( 0, "cow.osg" );

        osgViewer::Viewer viewer;
        viewer.setSceneData( root.get() );

        return viewer.run();
}



Thank you for your interest despite my poor English. :)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48500#48500





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to