Swapnil Sha (swapnil++at++teil.soft.net)
Sat, 17 May 1997 14:00:39 -0530 (IST)
What i wanted to know is, does performance gets affected by this type of
scene graph, while traveling through it???
-swapnil
According to Steve Baker:
>
> > What can be the performance issue for the following two :
> >
> > ----------- one ------------
> > f()
> > {
> > pfDCS *dcs = new pfDCS;
> > dcs->setRot(h, p, r);
> > }
> >
> > ---------- two ------------
> >
> > class Car : public pfDCS
> > {
> > public :
> > Car():pfDCS()
> > {}
> >
> > void setRotation(float h, float p, float r)
> > {
> > setRot(h,p,r);
> > }
> > }
> >
> > f()
> > {
> > Car *car = new Car;
> >
> > car->setRotation(....);
> > }
> >
>
> Since setRotation is inline, I'd expect the compiler to generate
> identical machine code in the two cases - so there should be no
> difference in performance.
>
>
> Steve Baker 817-619-1361 (Vox-Lab)
> Hughes Training Inc. 817-619-8776 (Vox-Office/Vox-Mail)
> 2200 Arlington Downs Road 817-619-4028 (Fax)
> Arlington, Texas. TX 76005-6171 Steve++at++MrEd.bgm.link.com (eMail)
> http://www.hti.com (external) http://MrEd.bgm.link.com/staff/steve (intranet)
> http://web2.airmail.net/sjbaker1 (external)
>
> ** Beware of Geeks bearing GIF's. **
>
>
***************************************************************************
swapnil++at++teil.soft.net http://www.teil.soft.net/~swapnil
swapnil++at++pfindy.teil.soft.net
swapn++at++hotmail.com
***************************************************************************
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:15 PDT