Hello everyone,
I wanted to find out where the horrible jitter in framerate is coming
from if I run my application in CullThreadPerCameraDrawThreadPerContext
mode but when I turn on statistics display, it crashes from time to time.
It crashes in the CameraSceneStatsTextDrawCallback which calls
SceneView::getStats and finally RenderBin::getStats where oitr is
invalid because another thread cleared the _stateGraphList.
It looks like the next cull starts before drawing the last frame
finished, can that be?
I would try to move collecting stats information to the cull thread but
starting cull if draw is still running does not sound too good anyway
thus this might be the right place to fix and there I am a bit stuck I
did not find the barrier that synchronizes cull and draw.
Can anyone help?
for(StateGraphList::const_iterator oitr=_stateGraphList.begin();
oitr!=_stateGraphList.end();
++oitr)
{
for(StateGraph::LeafList::const_iterator dw_itr =
(*oitr)->_leaves.begin();
--> here is where it crashes: (the debugger says that stateGraphList is
empty
dw_itr != (*oitr)->_leaves.end();
++dw_itr)
{
I was blaming it to my application but I can reproduce it with osgViewer
when running with --CullThreadPerCameraDrawThreadPerContext and a small
.ive dataset.
I am running OpenSceneGraph svn version from today
Windows XP 32bit
VisualStudio 2005
on a dual core laptop with Nvidia Quadro graphics.
Regards,
Uwe
--
\\\|/// *HLRS, High Performance Computing Center Stuttgart*
_I_ ( o o ) *Visualization/VR* _I_
(_...@_)--oo0O--(_)--O0oo------------------------------------------(_...@_)
| | Uwe Woessner http://www.hlrs.de/people/woessner/ | |
| | .ooo0 mobile: +49-173-7028729 | |
|_| ( ) Oooo. office: +49-711-6856-5790 |_|
(_...@_)-------\ (---( )-----------------------------------------(_...@_)
I \_) ) / I
(_/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org