"J. Lee Dixon" wrote:
>
> Now I think my problem is the slowness of moving BranchGroup nodes
> around in the OrderedGroup.  I thought I had heard that detaching a
> BranchGroup and re-attaching was very expensive.  I tried searching the
> archives but the listserv search engine is a bit slow for me right now.

A couple of years ago we did some profiling of branchgroup performance.
We had scenes where the geometry was being updated/changed on a very
rapid rate. The profiling was to look at the performance difference
between removing the BG, adding/removing the geometry and putting it
back in with no capability bits set, versus directly adding/removing new
geometry with all of the capability bits turned on.

Now my memory is a little fuzzy, and this would have been with J3D 1.1,
but there wasn't that much performance difference between the two
approaches. Up to around 500 children in a single BG they were neck and
neck. Beyond that, the capability bits made it a little faster. Once you
got to around 2,500 children then the BG went exponential with the
detach/add and the add became a steeper linear (i think, but not off the
charts like BGs did). ie The conclusion from this was that for most
normal scenes, capability bits weren't worth the effort needed to put
them into the API.


--
Justin Couch                         http://www.vlc.com.au/~justin/
Freelance Java Consultant                  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to