Re: [osg-users] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-31 Thread Robert Osfield
Hi Werner,

Great to her you got to the bottom of this issue, amazing how such a
small and innocuous looking change can have such a dramatic impact.

BTW, the short hand for setting the binding in OSG-3.4 onwards is:

  geometry-setNormalArray(array, osg::Array::BIND_PER_VERTEX);

The separate setNormalBinding(...) method is now deprecated as
osg::Array itself now manages the Binding rather than osg::Geometry.

Robert.

Robert.

On 31 March 2017 at 14:39, Werner Modenbach  wrote:
> Hi Robert,
>
> final analysis:
>
> In our software we did the following patch to make it run with high fps in
> master of 3.4 branch:
>
>  osgNormals = new osg::Vec3Array;
>
> +osgNormals->setBinding(osg::Array::BIND_PER_VERTEX);
>
>  geometry->setNormalArray(osgNormals.get());
>
>  geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);
>
>
>
> Obviously we have to set the binding in the array itself and the
> setNormalBinding works but has poor performance.
>
> Now we are happy again :-)
>
> - Werner -
>
>
> Am 31.03.2017 um 13:11 schrieb Werner Modenbach:
>
> Hi Robert,
>
> the 3.4.0 tagged version is OK with the frame rate.
> We discovered your commit in the 3.4 branch causing the problem:
>
> From 1f1c21772ae0dd10a93cd31ab81bf563802b7b2d Mon Sep 17 00:00:00 2001
>
> From: Robert Osfield 
>
> Date: Thu, 3 Nov 2016 11:31:07 +
>
> Subject: Added check against binding type of array to decide whether it's
>
>  appropriate to assign array to VBO.
>
> diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp
>
> index 779e8cd..244bf25 100644
>
> --- a/src/osg/Geometry.cpp
>
> +++ b/src/osg/Geometry.cpp
>
> @@ -445,7 +445,7 @@ bool Geometry::getDrawElementsList(DrawElementsList&
> drawElementsList) const
>
>
>
>  void Geometry::addVertexBufferObjectIfRequired(osg::Array* array)
>
>  {
>
> -if (_useVertexBufferObjects)
>
> +if (_useVertexBufferObjects &&
> array->getBinding()==Array::BIND_PER_VERTEX)
>
>  {
>
>  if (!array->getVertexBufferObject())
>
>  {
>
>
> The question is: Why is the viewer frame rate OK, even it is built with the
> same version we are using?
> What are we doing different to the viewer?
>
> Thanks so much for your excellent work!
>
> - Werner -
>
> Am 28.03.2017 um 18:22 schrieb Robert Osfield:
>
> Hi Wener,
>
> On 28 March 2017 at 16:24, Werner Modenbach 
> wrote:
>>
>> I know it is actually not your duty giving help here but you are very
>> familiar with the driver calls and it would help a lot if you can provide
>> an idea what kind of setting might cause this issue.
>
>
> I'm a very occasional Windows user so really don't have much experience with
> Windows drivers to be able help with driver settings.
>
> It's a long shot, but have your tried the OSG-3.4 branch or OSG master as
> these both contain a range of bug fixes/OSG improvements, there is chance
> that something has changed that might fix things.
>
> Whatever the cause is it seems to be some small OpenGL state difference
> between OSG-3.2 and OSG-3.4.0, I'm afraid I don't know what this might be.
> Perhaps using a 3rd party OpenGL debugging tool might help here - capture
> all the GL calls for 3.2.x and 3.4.x and see what the differences are.
>
> Robert.
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> --
> TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen
> Phone: +49 241 475757-0
> Fax: +49 241 475757-29
> Web: http://texion.eu
> eMail: i...@texion.eu
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> --
> TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen
> Phone: +49 241 475757-0
> Fax: +49 241 475757-29
> Web: http://texion.eu
> eMail: i...@texion.eu
>
> ___
> 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] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-31 Thread Werner Modenbach

Hi Robert,

final analysis:

In our software we did the following patch to make it run with high fps 
in master of 3.4 branch:


osgNormals=newosg::Vec3Array;

+osgNormals->setBinding(osg::Array::BIND_PER_VERTEX);

geometry->setNormalArray(osgNormals.get());

geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);

Obviously we have to set the binding in the array itself and the 
setNormalBinding works but has poor performance.


Now we are happy again :-)

- Werner -

Am 31.03.2017 um 13:11 schrieb Werner Modenbach:

Hi Robert,

the 3.4.0 tagged version is OK with the frame rate.
We discovered your commit in the 3.4 branch causing the problem:

From1f1c21772ae0dd10a93cd31ab81bf563802b7b2dMonSep1700:00:002001
From:RobertOsfield
Date:Thu,3Nov201611:31:07+
Subject:Addedcheckagainstbindingtypeofarraytodecidewhetherit's
appropriatetoassignarraytoVBO.
diff--gita/src/osg/Geometry.cppb/src/osg/Geometry.cpp
index779e8cd..244bf25100644
---a/src/osg/Geometry.cpp
+++b/src/osg/Geometry.cpp
@@-445,7+445,7@@boolGeometry::getDrawElementsList(DrawElementsList)const
voidGeometry::addVertexBufferObjectIfRequired(osg::Array*array)
{
-if(_useVertexBufferObjects)
+if(_useVertexBufferObjects&>getBinding()==Array::BIND_PER_VERTEX)
{
if(!array->getVertexBufferObject())
{

The question is: Why is the viewer frame rate OK, even it is built 
with the same version we are using?

What are we doing different to the viewer?

Thanks so much for your excellent work!

- Werner -

Am 28.03.2017 um 18:22 schrieb Robert Osfield:

Hi Wener,

On 28 March 2017 at 16:24, Werner Modenbach 
> wrote:


I know it is actually not your duty giving help here but you are very
familiar with the driver calls and it would help a lot if you can
provide
an idea what kind of setting might cause this issue.


I'm a very occasional Windows user so really don't have much 
experience with Windows drivers to be able help with driver settings.


It's a long shot, but have your tried the OSG-3.4 branch or OSG 
master as these both contain a range of bug fixes/OSG improvements, 
there is chance that something has changed that might fix things.


Whatever the cause is it seems to be some small OpenGL state 
difference between OSG-3.2 and OSG-3.4.0, I'm afraid I don't know 
what this might be.  Perhaps using a 3rd party OpenGL debugging tool 
might help here - capture all the GL calls for 3.2.x and 3.4.x and 
see what the differences are.


Robert.


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


--
*TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen*
Phone: +49 241 475757-0
Fax: +49 241 475757-29
Web: http://texion.eu
eMail: i...@texion.eu


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


--
*TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen*
Phone: +49 241 475757-0
Fax: +49 241 475757-29
Web: http://texion.eu
eMail: i...@texion.eu
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-31 Thread Werner Modenbach

Hi Robert,

the 3.4.0 tagged version is OK with the frame rate.
We discovered your commit in the 3.4 branch causing the problem:

From1f1c21772ae0dd10a93cd31ab81bf563802b7b2dMonSep1700:00:002001

From:RobertOsfield

Date:Thu,3Nov201611:31:07+

Subject:Addedcheckagainstbindingtypeofarraytodecidewhetherit's

appropriatetoassignarraytoVBO.

diff--gita/src/osg/Geometry.cppb/src/osg/Geometry.cpp

index779e8cd..244bf25100644

---a/src/osg/Geometry.cpp

+++b/src/osg/Geometry.cpp

@@-445,7+445,7@@boolGeometry::getDrawElementsList(DrawElementsList)const

voidGeometry::addVertexBufferObjectIfRequired(osg::Array*array)

{

-if(_useVertexBufferObjects)

+if(_useVertexBufferObjects&>getBinding()==Array::BIND_PER_VERTEX)

{

if(!array->getVertexBufferObject())

{


The question is: Why is the viewer frame rate OK, even it is built with 
the same version we are using?

What are we doing different to the viewer?

Thanks so much for your excellent work!

- Werner -

Am 28.03.2017 um 18:22 schrieb Robert Osfield:

Hi Wener,

On 28 March 2017 at 16:24, Werner Modenbach 
> wrote:


I know it is actually not your duty giving help here but you are very
familiar with the driver calls and it would help a lot if you can
provide
an idea what kind of setting might cause this issue.


I'm a very occasional Windows user so really don't have much 
experience with Windows drivers to be able help with driver settings.


It's a long shot, but have your tried the OSG-3.4 branch or OSG master 
as these both contain a range of bug fixes/OSG improvements, there is 
chance that something has changed that might fix things.


Whatever the cause is it seems to be some small OpenGL state 
difference between OSG-3.2 and OSG-3.4.0, I'm afraid I don't know what 
this might be.  Perhaps using a 3rd party OpenGL debugging tool might 
help here - capture all the GL calls for 3.2.x and 3.4.x and see what 
the differences are.


Robert.


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


--
*TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen*
Phone: +49 241 475757-0
Fax: +49 241 475757-29
Web: http://texion.eu
eMail: i...@texion.eu
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-28 Thread Robert Osfield
Hi Wener,

On 28 March 2017 at 16:24, Werner Modenbach 
wrote:

> I know it is actually not your duty giving help here but you are very
> familiar with the driver calls and it would help a lot if you can provide
> an idea what kind of setting might cause this issue.
>

I'm a very occasional Windows user so really don't have much experience
with Windows drivers to be able help with driver settings.

It's a long shot, but have your tried the OSG-3.4 branch or OSG master as
these both contain a range of bug fixes/OSG improvements, there is chance
that something has changed that might fix things.

Whatever the cause is it seems to be some small OpenGL state difference
between OSG-3.2 and OSG-3.4.0, I'm afraid I don't know what this might be.
Perhaps using a 3rd party OpenGL debugging tool might help here - capture
all the GL calls for 3.2.x and 3.4.x and see what the differences are.

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


Re: [osg-users] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-28 Thread Werner Modenbach

Hi Robert,

I have done 1 week of testing now on the dramatic performance issue.
As I said, when linking my program against osg 3.2.1 I get 60 fps
and linking the program without any change against version 3.4.0 I get 
2.5 fps.

Exporting my scene and running it in your viewer in 3.4.0 also has 60 fps.
So the problem is somewhere in the settings of my software. :-(
I used 2 different tools for profiling and both tell me that about 95% 
of the
running time is done in nvoglv64.dll. One of the tool tells me it is 
mainly the

function "DrvPresentBuffers" but I'm not sure if this is reliable.

I know it is actually not your duty giving help here but you are very
familiar with the driver calls and it would help a lot if you can provide
an idea what kind of setting might cause this issue.

Many thanks in advance

- Werner -

Am 20.03.2017 um 18:08 schrieb Robert Osfield:

Hi Werner,

Hopefully others will be able to chip in as I don't have a answer 
right now, it's certainly very odd.  If it were a general problem then 
we'd seen lots of issue with it being reported.


With this level of slow down it's almost like your'e invoking a 
software renderer when running with 3.4.0.


My next thought is that perhaps an OpenGL error is being invoked 
somehow. Are there any errors being reported to the console?


What happens with the standard OSG example set?  Does osgviewer run 
any differently with models you have on the two versions.


Robert.



On 20 March 2017 at 15:29, Werner Modenbach 
> wrote:


Hi Robert,

I updated my project from version 3.2.1 to 3.4.0.
I'm on Window 7 Pro.
Unfortunately the frame rate dropped significantly from 60 fps to
2.x fps.
I verified it several times by just linking to the 2 versions
without any change of my code.
Please see the 2 screen shots with the stats output.

Do you have any idea what might be the reason for it or how I can
do further analysis?

Thanks for any idea.

- Werner -

Ich habe 2 zu dieser E-Mail gehörende Dateien hochgeladen:
OSG 3.4.0.png
(727
KB)Hightail

https://www.hightail.com/download/dDZFdFdRMm1veE5vZE1UQw

OSG 3.2.1.png
(628
KB)Hightail

https://www.hightail.com/download/dDZFdFdRMm1veE5jR01UQw

Mozilla Thunderbird  macht es
einfach, große Dateien über E-Mails zu teilen.


___
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


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


Re: [osg-users] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-20 Thread Robert Osfield
Hi Werner,

Hopefully others will be able to chip in as I don't have a answer right
now, it's certainly very odd.  If it were a general problem then we'd seen
lots of issue with it being reported.

With this level of slow down it's almost like your'e invoking a software
renderer when running with 3.4.0.

My next thought is that perhaps an OpenGL error is being invoked somehow.
Are there any errors being reported to the console?

What happens with the standard OSG example set?  Does osgviewer run any
differently with models you have on the two versions.

Robert.



On 20 March 2017 at 15:29, Werner Modenbach 
wrote:

> Hi Robert,
>
> I updated my project from version 3.2.1 to 3.4.0.
> I'm on Window 7 Pro.
> Unfortunately the frame rate dropped significantly from 60 fps to 2.x fps.
> I verified it several times by just linking to the 2 versions without any
> change of my code.
> Please see the 2 screen shots with the stats output.
>
> Do you have any idea what might be the reason for it or how I can do
> further analysis?
>
> Thanks for any idea.
>
> - Werner -
>
> Ich habe 2 zu dieser E-Mail gehörende Dateien hochgeladen:
> OSG 3.4.0.png (727
> KB)Hightail https://www.hightail.com/download/
> dDZFdFdRMm1veE5vZE1UQw
> OSG 3.2.1.png (628
> KB)Hightail https://www.hightail.com/download/
> dDZFdFdRMm1veE5jR01UQw
> Mozilla Thunderbird  macht es einfach,
> große Dateien über E-Mails zu teilen.
>
>
> ___
> 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


[osg-users] Significant drop in frame rate when updating from OSG 3.2.1 to 3.4.0

2017-03-20 Thread Werner Modenbach

Hi Robert,

I updated my project from version 3.2.1 to 3.4.0.
I'm on Window 7 Pro.
Unfortunately the frame rate dropped significantly from 60 fps to 2.x fps.
I verified it several times by just linking to the 2 versions without 
any change of my code.

Please see the 2 screen shots with the stats output.

Do you have any idea what might be the reason for it or how I can do 
further analysis?


Thanks for any idea.

- Werner -

Ich habe 2 zu dieser E-Mail gehörende Dateien hochgeladen:
OSG 3.4.0.png 
(727 
KB)Hightail 
https://www.hightail.com/download/dDZFdFdRMm1veE5vZE1UQw
OSG 3.2.1.png 
(628 
KB)Hightail 
https://www.hightail.com/download/dDZFdFdRMm1veE5jR01UQw
Mozilla Thunderbird  macht es einfach, 
große Dateien über E-Mails zu teilen.




binQ0SqVuwJ4x.bin
Description: Binary data


binxMcBV91Bzv.bin
Description: Binary data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org