[osg-users] Performance Windows (Visual Studio) compared to MAC OS/X

Adrian Egli 3dhelp at gmail.com
Mon Oct 15 15:09:07 PDT 2007


Hi all

What i can say for the moment, windows isn't as fast as the OS/X is. may
somebody working under windows and linux, dual core system
can build and test the attached file. what are the bench under linux
compared to windows xp.

by the way, the kd-tree implementation is not so bad,

using bounding box as kd-tree optimisation...
os/x                          : (446K/s)   1.00
windows xp (vs 2003) : (379K/s)   0.85
windows xp (vs 2005) : (347K/s)   0.77

using bounding sphere as kd-tree optimisation...
os/x                          : (274K/s)   1.00
windows xp (vs 2003) : (229K/s)   0.84
windows xp (vs 2005) : (184K/s)   0.67


so what can we do for next step. integration into OSG core, for faster line
intersection checks

/thanks

adrian

2007/10/15, Adrian Egli <3dhelp at gmail.com>:
>
> Yes, Paul: equals is the image output. ...
>
> and the kd-tree should be equal, i summed up for each node the depth and
> also for the leaves. everything is equal.
>
> /but the perf not
>
> ... i working with float for all values. i don't understand why it's not
> at all equal the nbr of tests. but the performance difference isn't not only
> that, because the difference of the nbr of test done and the performance
> difference are not similar.
>
>
> *****************************************************************************
> Visual Studio 2003
>
> *****************************************************************************
> KD-Tree...[23348:20]
> KD-Tree Build Time      =       0.248399s
>    + ObjList            =     23348
>       + Nodes           =     14139
>         + depth sum     =     13724
>       + Leaves          =     8049
>         + depth sum     =     7657
>
> Intersection Time       =       0.000254502s
> Rays                    =       1
> Nodes Checks            =       79
> Bounding Checks         =       122
> Triangles Checks        =       49
> Linehits                =       6
> Intersection Time <osg> =       0.0215715s
> Linehits                =       6
>
> SpeedUp                 =       84.7596
>
>
> Ray Trace Time          =       3.94728s
>
> Rays                    =       786152          (199K/s)
> Nodes Checks            =       24806690
> Bounding Checks         =       49252143
> Triangles Checks        =       16609007
>
> Viewer...
> Scaling image from (600,800) to (512,1024)
>
>
>
>
>
>
>
>
>
> *****************************************************************************
>
> Visual Studio 2005
>
> *****************************************************************************
> KD-Tree...[23348:20]
> KD-Tree Build Time      =       0.256906s
>    + ObjList            =     23348
>       + Nodes           =     14139
>         + depth sum     =     13724
>       + Leaves          =     8049
>         + depth sum     =     7657
>
> Intersection Time       =       0.000297803s
> Rays                    =       1
> Nodes Checks            =       79
> Bounding Checks         =       122
> Triangles Checks        =       49
> Linehits                =       6
> Intersection Time <osg> =       0.0203945s
> Linehits                =       6
>
> SpeedUp                 =       68.4831
>
>
> Ray Trace Time          =       4.59982s
>
> Rays                    =       786152          (170K/s)
> Nodes Checks            =       24806705
> Bounding Checks         =       49252212
> Triangles Checks        =       16608961
>
> Viewer...
> Scaling image from (600,800) to (512,1024)
>
>
> 2007/10/15, Paul Melis < paul at science.uva.nl>:
> >
> > Adrian Egli wrote:
> >
> > > Hi all,
> > >
> > > same code, allways default project settings, release, same CPU/RAM/...
> > > windows native and os/x native dual boot....
> > >
> > > what you think about this !!!! results are equal, but computing time
> > ....
> >
> > With "results" I assume you mean the image output? As the number of tree
> > nodes checked and triangles intersected is obviously not equal. Which
> > should explain at least some of the differences. Are the Kd-trees equal
> > among the different platforms?
>
>
>
> yes i still check out the issue, and i don't understand why the kd-trees
> may is
>
>
> Paul
> >
> > >
> > > ************************************************************
> > > MAC OS/X XCode
> > > ************************************************************
> > > Ray Trace Time          =       2.97638s
> > >
> > > Rays                          =       787307          (264K Rays/s)
> > > Nodes Checks            =       24939199
> > > Bounding Checks        =       49512447
> > > Triangles Checks        =       16703960
> > >
> > >
> > > ************************************************************
> > > Visual Studio 2003
> > > ************************************************************
> > > Ray Trace Time          =       3.77131s
> > >
> > > Rays                    =       786152          (208K/s)
> > > Nodes Checks            =       24806690
> > > Bounding Checks         =       49252143
> > > Triangles Checks        =       16609007
> > >
> > > ************************************************************
> > > Visual Studio 2005
> > > ************************************************************
> > >
> > > Ray Trace Time          =       4.62109s
> > >
> > > Rays                    =       786152          (170K/s)
> > > Nodes Checks            =       24806705
> > > Bounding Checks         =       49252212
> > > Triangles Checks        =       16608961
> > > --
> > > ********************************************
> > > Adrian Egli
> > >
> >
> > >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> > >osg-users mailing list
> > >osg-users at lists.openscenegraph.org
> > >http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > >
> > >
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
>
>
>
> --
> ********************************************
> Adrian Egli




-- 
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071016/9da6b6b4/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar
Type: application/x-tar
Size: 153600 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071016/9da6b6b4/attachment-0003.tar>


More information about the osg-users mailing list