Re: [Plib-devel] ssgVtxArray fixes.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-08-08 05:20:55
|
Chris Phillips wrote: > > >Is there some reason why the index array is an array of 'int'? Since the > underlying > >SSG classes don't allow more than 32k vertices/normals/colours/texcoords > per leaf > >node - it seems unlikely that this would be needed - and there are > certainly speed > >improvements to be had from using a 'short' index array. > > > I was under the impression that dealing with ints is usually faster that > shorts on > 32 bit processors. Are you talking about speed improvments from code > optimization or something > else like data cacheing? Well, doing *math* on ints is probably faster than shorts - but this is largely a matter of RAM bandwidth and cache sizes and such. I'm no expert either - but I was under the impression that for simple indexing and such, shorts can be faster. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |