Hi Brian,
>
> First I like to say osgPPU is really fantastic!!!
>
yes, in deed ;-)
> I'm using osgPPU 0.2 on OSG 2.2. I had to add my own
> version of
> osg::Shader::readShadefFile to get it to compile/run on osg
> 2.2. So far so
> good. I can run the examples and I've created my own
> test application.
>
Oh, yeah, thats true. The examples do require this functions to load the
shaders. It has changed since the last release. However the core library, do
not need that support from the side of osg.
> My test application normally runs at 30-40 hz. When I added
> an
> osgViewer::StatsHandler and turn stats on (hit 's'
> key), the performance
> jumps to 240 hz. When I turn stats off the performance
> drops back to 30-40
> hz.
>
Hmm, this is really strange. Are you sure, that you really got that speed. I
mean, maybe the counter just don't show exactly that FPS which is really
running. Try to make your own frame time computations. Just something like this:
int lasttime = time(NULL);
while (viewer.running())
{
int current = time(NULL);
int difference = current - lasttime;
printf("FPS %f\n", 1000.0 / float(difference));
lasttime = current;
viewer.frame();
}
This is just an example. Maybe you can then compute the real performance.
Because it is really strange - why using the StatsHandler one should got higher
performance than without it ;)
Best regards,
Art
> Any ideas why?
>
> Brian
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> This is a PRIVATE message. If you are not the intended
> recipient, please
> delete without copying and kindly advise us by e-mail of
> the mistake in
> delivery. NOTE: Regardless of content, this e-mail shall
> not operate to
> bind CSC to any order or other contract unless pursuant to
> explicit written
> agreement or government initiative expressly permitting the
> use of e-mail
> for such purpose.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org