Re: [osg-users] Using SSE within OSG

2008-08-05 Thread James Killian
I would like to take a moment to show a snap shot of how these optimizations have impacted our game. To interpret the data, they show frames per second where the first column keeps an average of the lowest times, the middle keeps the overall average, and the right keeps track for the highest time

Re: [osg-users] Using SSE within OSG

2008-08-05 Thread James Killian
Thanks for posting this link. I'll definitely want to look at this. James Killian - Original Message - From: "Benjamin Eikel" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" Sent: Tuesday, August 05, 2008 3:11 AM Subject: Re: [osg-users] Using SSE with

Re: [osg-users] Using SSE within OSG

2008-08-05 Thread Benjamin Eikel
Hello, some days ago I stumbled upon a library: liboil [1]. Maybe some of the routines implemented there could be used for OSG. The library contains different functions (e. g. arithmetic ones) that are optimized for different processeor architectures (it uses SSE or Altivec for example). Maybe

Re: [osg-users] Using SSE within OSG

2008-08-04 Thread James Killian
I can help. James Killian - Original Message - From: Robert Osfield To: "OpenSceneGraph Users" Sent: Sunday, Aug 3, 2008 05:58 AM Subject: Re: [osg-users] Using SSE within OSG Hi Guys, I've read through the correspondence on this issue, but won't dive in with revie

Re: [osg-users] Using SSE within OSG

2008-08-03 Thread Robert Osfield
Hi Guys, I've read through the correspondence on this issue, but won't dive in with reviewing submissions on this topic till well after 2.6.0 is out the door. As a general note, there seems to be two related topics - data alignment and then SSE instructions, they are of course related but I'd sug

Re: [osg-users] Using SSE within OSG

2008-07-30 Thread Mathias Fröhlich
James, The most obvious problem: Group::traverse ... Is one of the visitors you use a TRAVERSE_ALL_CHILDREN visitor? If so, the Group::traverse profile makes sense. Make sure that you do traverse only this subgraphps you need to traverse. You can then minimize that calls too. Will help overall

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
h" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" Sent: Tuesday, July 29, 2008 10:14 AM Subject: Re: [osg-users] Using SSE within OSG James, On Tuesday 29 July 2008 16:59, James Killian wrote: Paul asked me the same question a few days ago, and I just realized that we took t

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
- Original Message - From: "Gordon Tomlinson" <[EMAIL PROTECTED]> To: "'OpenSceneGraph Users'" Sent: Tuesday, July 29, 2008 2:58 PM Subject: Re: [osg-users] Using SSE within OSG > HI > > I can only go buy our low level masters and th

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Gordon Tomlinson
real-time -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Killian Sent: Tuesday, July 29, 2008 11:38 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Using SSE within OSG Sorry... I interpreted Gordon's response as follows: MS does a poor j

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
PROTECTED]> To: "OpenSceneGraph Users" Sent: Tuesday, July 29, 2008 10:14 AM Subject: Re: [osg-users] Using SSE within OSG James, On Tuesday 29 July 2008 16:59, James Killian wrote: > Paul asked me the same question a few days ago, and I just realized that we > took that offline

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
or places that need it. I hope this clears things up. - Original Message - From: "David Spilling" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" Sent: Tuesday, July 29, 2008 10:17 AM Subject: Re: [osg-users] Using SSE within OSG > James, > > > >

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread David Spilling
James, > I have to disagree, using VS 7 and up to VS 9. Just to clarify - what are you disagreeing with? Do you find that MS compilers will produce SSE vectorised code _without_ use of intrinsics or raw __asm? David ___ osg-users mailing list osg-use

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Mathias Fröhlich
James, On Tuesday 29 July 2008 16:59, James Killian wrote: > Paul asked me the same question a few days ago, and I just realized that we > took that offline so I'll repost here: > One of the things I should add is the actual profile dump, since that shows > a more comprehensive picture. The actu

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
uot;Gordon Tomlinson" <[EMAIL PROTECTED]> To: "'OpenSceneGraph Users'" Sent: Tuesday, July 29, 2008 8:56 AM Subject: Re: [osg-users] Using SSE within OSG > MS does a very poor job, > > I know most of our SSE is asm'ed > > > > _ > &g

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Sebastian Messerschmidt
Hi All, Regarding question 2: Wouldn't it be possible to dynamically link different versions of the OSG-DLLs? So there would be two Version of the DLLs, one with the SSE-Optimizations and one with the straightforward code. I've seen examples of games some years ago, where they linked different

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
me? > > Regards, > Paul > -snip--- --- - Original Message - From: "Mathias Fröhlich" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" Sent: Tuesday, July 29, 2008 9:31 AM Subject: Re: [osg-users] Using SSE within OS

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Mathias Fröhlich
Hi, On Tuesday 29 July 2008 15:18, James Killian wrote: > I 100% agree with that as that is the first thing I did. For the matrixf > mult I got 50% improvement with aligned data and 35% with unaligned. For > the Invert4x4 I got 80% improvement with aligned and 70% aligned with > unaligned. I'v

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Gordon Tomlinson
MS does a very poor job, I know most of our SSE is asm'ed _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Spilling Sent: Tuesday, July 29, 2008 9:11 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Using SSE within OSG Benjamin, may I suggest

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread David Spilling
Benjamin, > > And please do not get me wrong. I do not want to stop your efforts to > improve > the performance of OSG; far from it! Not necessarily my efforts - I'm just being the messenger...! But putting assembler code into the > project decrease the readability and serviceability of the cod

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread James Killian
es Killian - Original Message - From: "Benjamin Eikel" <[EMAIL PROTECTED]> To: "OpenSceneGraph Users" Sent: Tuesday, July 29, 2008 7:28 AM Subject: Re: [osg-users] Using SSE within OSG Am Dienstag, 29. Juli 2008 14:04:59 schrieb David Spilling: Dea

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread David Spilling
Benjamin, > may I suggest that you check the assembler code that the compilers create > when > compiling the OSG code? > ... g++ with -march=core2 -O3 (see man page for description > of parameters) the compiler automatically uses SSE I don't have much recent Linux/gcc experience, but can cer

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Benjamin Eikel
Am Dienstag, 29. Juli 2008 14:28:18 schrieb Benjamin Eikel: > Am Dienstag, 29. Juli 2008 14:04:59 schrieb David Spilling: > > Dear All, > > [...] > > > Any other suggestions? > > > > *Question 3 : (possibly the biggest) Should the core OSG include SSE?* > > There are several downsides to including

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Benjamin Eikel
Am Dienstag, 29. Juli 2008 14:04:59 schrieb David Spilling: > Dear All, [...] > Any other suggestions? > > *Question 3 : (possibly the biggest) Should the core OSG include SSE?* > There are several downsides to including SSE. Firstly, x-platform provision > of SSE may be tricky due to the way diffe

Re: [osg-users] Using SSE within OSG

2008-07-29 Thread Gordon Tomlinson
Hi David My company makes very heavy use of SSE in our main products, and there are vast speed improvements to be gained, sadly I don't have permission to provide profiling data We use SSE's for heavy heavy matrix work outside of OSG, we use some we have added to our OSG/OGL apps such as for no