Re: [osg-users] Composite Viewer with TXP database works?

2008-06-20 Thread Guthrie, David A
We've found that if you play with the database pager settings (look in 
DatabasePager.cpp), you can change the performance of terrapage databases 
significantly.  

The TXP pager code on the trunk has some optimizations in it that speed it up 
quite a bit. Plus it runs the optimizer, although, we found a database recently 
that takes a long time to optimize, which is sort of counter-productive.

We took apps running at 20-30 fps to running at over 60Hz.


-Original Message-
From: [EMAIL PROTECTED] on behalf of Mielcarek, Donn
Sent: Thu 6/19/2008 9:41 AM
To: OpenSceneGraph Users
Subject: RE: [osg-users] Composite Viewer with TXP database works?
 
Robert,
 
It's helped, but hasn't solved the problem. It doesn't crash right away,
but it eventually will hit a random point and the program dies.
 
Also, when the second window is open, it absolutely kills the
frame rate from 30 hz to about 10 hz.
 
I've run it SingleThreaded and haven't been able to get it to
die, but again it's so slow as to be unusable.
 
Don't you just hate these kind of problems?
 
donn
 

  _  

From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Mon 6/16/2008 9:18 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Composite Viewer with TXP database works?



Hi Donn,

I've done some testing and review of the txp plugin, and it looks like
both the basic terrapage code and OSG code on top of it isn't thread
safe w.r.t multiple camera positions/cull traversals.  To prevent
problems I've added a mutex into the TXPNode class that the txp plugin
decorates the txp subgraph.  So far in testing this looks to have
resolved the crash.

Could you try the SVN version of the OSG?

Robert.
___
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


Re: [osg-users] Composite Viewer with TXP database works?

2008-06-20 Thread Robert Osfield
Hi Donn,

On Thu, Jun 19, 2008 at 2:41 PM, Mielcarek, Donn
[EMAIL PROTECTED] wrote:
 It's helped, but hasn't solved the problem. It doesn't crash right away,
 but it eventually will hit a random point and the program dies.

Could you try to get a stack trace of the location of the crash.

 Also, when the second window is open, it absolutely kills the
 frame rate from 30 hz to about 10 hz.

Make sure the OSG is built optimized, this makes a huge difference to
performance.  However, running a second window will up both the amount
of rendering down and increase the amount of memory down on the GPU
required, so if you are close to breaking memory limits then a bit hit
on performance perhaps isn't too surprising.

You could try a different OS to see if that helps, as memory
management/threading differences might make a difference to
performance.

Finally, it looks like the basic TerraPage looks designed for a single
view point, rather than multiple view points, so it may well end up
thrashing between the viewpoints than might otherwise occur.  To fix
this you'd need to chat to the Terrex engineers.

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


Re: [osg-users] Composite Viewer with TXP database works?

2008-06-19 Thread Mielcarek, Donn
Robert,
 
It's helped, but hasn't solved the problem. It doesn't crash right away,
but it eventually will hit a random point and the program dies.
 
Also, when the second window is open, it absolutely kills the
frame rate from 30 hz to about 10 hz.
 
I've run it SingleThreaded and haven't been able to get it to
die, but again it's so slow as to be unusable.
 
Don't you just hate these kind of problems?
 
donn
 



From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Mon 6/16/2008 9:18 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Composite Viewer with TXP database works?



Hi Donn,

I've done some testing and review of the txp plugin, and it looks like
both the basic terrapage code and OSG code on top of it isn't thread
safe w.r.t multiple camera positions/cull traversals.  To prevent
problems I've added a mutex into the TXPNode class that the txp plugin
decorates the txp subgraph.  So far in testing this looks to have
resolved the crash.

Could you try the SVN version of the OSG?

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


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


Re: [osg-users] Composite Viewer with TXP database works?

2008-06-16 Thread Robert Osfield
Hi Donn,

I've just run osgthirdpersonview on a txp database and it immediately
crashed, I also tried a database generated by VirtualPlanetBuilder and
while it didn't crash right away it did eventually hang.  I haven't
done any debugging yet to divine what might be amiss, but at least I
can confirm that the problem is reproducible.

In experimentation change the threading model to SingleThreaded did
allow the osgthirdpersonview to work.  Could you confirm this at your
end by doing:

  export OSG_THREADING=SingleThreaded

Or similar env var setting, then run your app/osgthirdpersonview to
see how you get on.

Robert.

On Thu, Jun 12, 2008 at 11:32 PM, Mielcarek, Donn
[EMAIL PROTECTED] wrote:
 Has anyone been using a Composite Viewer with multiple
 views and a TXP database?

 I have a viewer with a second view that sits in
 one place within the database.  I can add whatever
 I want to the second view.

 It works fine unless I call:

 view2-setSceneData(databasenodes);

 where databasenodes is a TXP database.

 The scene comes up in the second view until I start
 to fly around within the database, then it dies.
 I'm thinking the TXP plugin has a problem
 maintaining two views.

 d


 ___
 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


Re: [osg-users] Composite Viewer with TXP database works?

2008-06-16 Thread Robert Osfield
Hi Donn,

I've done some testing and review of the txp plugin, and it looks like
both the basic terrapage code and OSG code on top of it isn't thread
safe w.r.t multiple camera positions/cull traversals.  To prevent
problems I've added a mutex into the TXPNode class that the txp plugin
decorates the txp subgraph.  So far in testing this looks to have
resolved the crash.

Could you try the SVN version of the OSG?

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


Re: [osg-users] Composite Viewer with TXP database works?

2008-06-16 Thread Mielcarek, Donn

Unfortunately, I'm out of the office until Thursday.  I'll
test it first thing then and let you know how it works
out.

Donn

-Original Message-
From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Mon 6/16/2008 9:18 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Composite Viewer with TXP database works?
 
Hi Donn,

I've done some testing and review of the txp plugin, and it looks like
both the basic terrapage code and OSG code on top of it isn't thread
safe w.r.t multiple camera positions/cull traversals.  To prevent
problems I've added a mutex into the TXPNode class that the txp plugin
decorates the txp subgraph.  So far in testing this looks to have
resolved the crash.

Could you try the SVN version of the OSG?

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

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


[osg-users] Composite Viewer with TXP database works?

2008-06-12 Thread Mielcarek, Donn
Has anyone been using a Composite Viewer with multiple
views and a TXP database?

I have a viewer with a second view that sits in
one place within the database.  I can add whatever
I want to the second view.

It works fine unless I call:

view2-setSceneData(databasenodes);

where databasenodes is a TXP database.

The scene comes up in the second view until I start
to fly around within the database, then it dies.
I'm thinking the TXP plugin has a problem
maintaining two views.

d

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