Scripting lots of rotations and memory consumption

Bongo uses a couple of methods to work around it:

  1. Conduits - during an animation preview, everything is dynamically drawn without moving the object in the document. In any case, without using this method, everything would be extremely slow - so if possible, this is the method I would advise Mitch to use.

  2. When actually rendering an animation, the objects actually have to be moved in the document so the renderer can see them. In this case, what we do is to actually run the render loop outside of a command so that each frame gets its own undo record. The automatic garbage collection then takes over - but this is a real hack. We basically have to hold Rhino in a modal state outside of a command to make this happen.

Mitch - to prove that this is what’s happening, once you’ve run your script and you’ve got 8Gb in “memory leak”…and you’re back at the command line - type clear undo. It should all go away.