3d gurus: I have a SimpleUniverse scene that was performing reasonably well. I added the ability for a user to add and remove a branchgroup interactively. Now, updates to the data in the scene - e.g., changing the color attribute of points in a point array - spend a lot of time in this method, according to hprof:
And the display freezes while it's happening. (I can't say for sure it's related, just the when I finished the tweaking, the behavior had changed)
I'm not sure what Java is doing here. I compute a single bounds object for the whole scene, and use it for each component. (and it's a sphere.) Any thoughts on why this would crop up?