Hey guys,

Does anyone have any experience with the Custom Render Abort callback?
I'm confused by some statements and the example code in the docs.

The docs say that in response to the abort callback we should halt further
processing as soon as possible and return CStatus::Abort from the Process
callback.
What is an acceptable "as soon as possible"? Obviously we can't check
whether the abort flag is set for every line of code.
Are there functions that will fail or hang if used after Abort has been
called? Anything else we should be aware of here? For instance is it
technically legal (albeit not nice to the user) to ignore the Abort
callback and just keep on extracting data and sending fragments to Soft?

Also, I'm confused by this statement in the docs on the Abort callback:
"The optimal way of doing this is to unlock the scene graph first, and then
check whether the flag has been set, in which case it should stop
immediately, otherwise then lock the scene graph again and carry on." What
is the purpose of unlocking the scene graph prior to checking the abort
flag? Why not just unlock if we find that the abort flag has been set?

Finally, in the ColorRenderer example in the docs, why is the abort check
that's done after sending each new fragment waiting on an event rather than
simply calling isAborted()?
Why the distinction here?

Thanks!

-Nicolas

Reply via email to