[osg-users] Culling time is extremely long

2012-02-28 Thread Suyang Dong
Hi,
I use compositeViewer, (osg 2.8.1) and each view contains no more than small 
amount of vertices. However the culling time, showed by the Statshelper, can be 
more than 30.
The tricky thing is it is inconsistent between runs. Sometimes the culling time 
is 5 ~ 6. Then after I rerun the program, it shoots up to more than 30

I have attached the file for initializing views,  

Looking for help.

Thank you!

Cheers,
Suyang

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




Attachments: 
http://forum.openscenegraph.org//files/rediculous_culling_180.jpg


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Culling time is extremely long

2012-02-28 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
1) Are you running on Linux or Windows?

2) Are you running OSG debug or release optimized?

3) Are you running with the default cull settings?

If you want helpful feedback, providing more info will provoke a better
response from the community.

I just see a screenshot of your stats. I don't see any file with
initializing code...

-Shayne

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Suyang
Dong
Sent: Saturday, February 25, 2012 4:07 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Culling time is extremely long

Hi,
I use compositeViewer, (osg 2.8.1) and each view contains no more than
small amount of vertices. However the culling time, showed by the
Statshelper, can be more than 30.
The tricky thing is it is inconsistent between runs. Sometimes the
culling time is 5 ~ 6. Then after I rerun the program, it shoots up to
more than 30

I have attached the file for initializing views,  

Looking for help.

Thank you!

Cheers,
Suyang

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




Attachments: 
http://forum.openscenegraph.org//files/rediculous_culling_180.jpg


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Culling time is extremely long

2012-02-28 Thread Sergey Polischuk
Hi

Culling time is more about amount of nodes\drawables in scene and how they 
organized into graph, and less about vertices itself. You can try to run your 
model through osg optimizer with SPATIALIZE_GROUPS option. Also check if you 
use any cull callbacks with heavy running time.
And if you have some nodes on which culling is disabled ( 
setCullingActive(false) ) deeply in graph structure, this can kill your 
performance too.

Cheers.

26.02.2012, 03:07, Suyang Dong dongsuyang.f...@yahoo.com.cn:
 Hi,
 I use compositeViewer, (osg 2.8.1) and each view contains no more than small 
 amount of vertices. However the culling time, showed by the Statshelper, can 
 be more than 30.
 The tricky thing is it is inconsistent between runs. Sometimes the culling 
 time is 5 ~ 6. Then after I rerun the program, it shoots up to more than 30

 I have attached the file for initializing views,

 Looking for help.

 Thank you!

 Cheers,
 Suyang

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

 Attachments:
 http://forum.openscenegraph.org//files/rediculous_culling_180.jpg

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org