Re: Add/Remove Child vs. Switch

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Fri, 14 Jul 95 17:24:43 PDT


>
>
>
> Hi everyone,
>
> I made a simple program firing laser beam to enemy vehicle.
> Laser beam is implemented using pfDCS -> pfClone -> pfAddChild.
> When a beam hits enemy vehicle, then it is pfRemoveChilded.
> It was successful, but when the beam disappears, the scene stopped
> for about 0.2~0.3 second.
>
> Now my questions :
> 1) Is pfRemoveChild so complex job?

RemoveChild should be very fast. Its speed is dependent on:

1. The number of children in the list.
2. The scene graph depth of the removed child.

If 1 and 2 are *very* large then RemoveChild could take a while.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.