I have done a few tests where a full optimization in VS8 (SSE2, Optimize for
speed, full optimization) gave me a worse (up to half performance) result
for common matrix, quat and vec3 operations such as dot, cross, preMult
etc...
So its not just a matter of screaming to the compiler to do a better job, it
also has to do with cache-size, cache-line (loading 4 floats instead of 3),
code size.
I haven't done any profiling of a whole osg app such as osgviewer, but we do
a lot of vector operations, so getting performance out of those methods are
crucial. I don't think that for example using SSE/3D Now optimized code
would make a big difference for a general osg app as they are probably not
limited by the vector operations....
/Anders
On 4/16/07, Gordon Tomlinson <[EMAIL PROTECTED]> wrote:
Yep deubg builds on Windows whether in VS7 or VS8 are SLOW
You should NEVER do any real timing or performance testing
in debug mode its pretty much a waste of time
Simple create a Release bulind in your project, the default
release optimizations settings will do in most cases
You will see in most cases a very large performance gain in a
Release build on windozes
After that you can start to tune the optimizations and if you
still have issues run a profiler to see were your spending your
Time
__________________________________________________________
Gordon Tomlinson
Email : [EMAIL PROTECTED]
Website : www.vis-sim.com www.gordontomlinson.com
__________________________________________________________
"Self defence is not a function of learning tricks
but is a function of how quickly and intensely one
can arouse one's instinct for survival"
-Master Tambo Tetsura
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: 16 April 2007 10:03
To: osg users
Subject: Re: [osg-users] Optimize for speed in VS.NET 7.1
Hi Sahaib,
I don't have any up to date points of reference, but back in the days when
I
did Windows dev on the OSG using VS6.0 the release vs debug runtime speed
was in the order of 3-4 speed different for CPU limited scenes, so
optimized
builds make a collosal difference.
Robert.
On 4/16/07, Sohaib Athar <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> A quick question, has anyone experienced a noticeable improvement in
> speed by compiling OSG/OT/your own project optimized for speed in the
> VS 2003 project settings? Or is it negligible/not noticable/creates
> problems? Can anyone share their experience?
>
> Sohaib Athar.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
________________________________________________________________
Anders Backman Email: [EMAIL PROTECTED]
HPC2N/VRlab Phone: +46 (0)90-786 9936
Umea university Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax: +46 90-786 6126
http://www.cs.umu.se/~andersb
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/