On Mar 22, 2007, at 3:33 PM, Shreekanth Pavar wrote:
I'm unsure why line 523 is needed:
doSerialAnimationCallbacks(changed, proc, workersAnimAndImage);
These functions handle 'one-shot' callbacks (which are mentioned in the
comments) but I'm unclear what these are and how they differ from normal
callbacks.
The parallel animation callback will get called by all of the threads. The serial animation callback will get called just by one of them. For updating simple state, the serial animation callback is preferred (you do not want multiple threads updating simple data).
One shot callbacks are different. They get called exactly once at some point in the future. The callbacks above are executed every single frame. For example, the -bench flag sets up a one shot callback to occur after 100 frames have been rendered.
Steve
Archive powered by MHonArc 2.6.16.