Closed paulmelis closed 4 years ago
That appears to be a gap in our documentation. There’s an ospCancel(OSPFuture)
used to cancel frames directly.
We will update the docs accordingly, thanks!
Also, FYI: ospWait(OSPFuture, OSPSyncEvent)
is for the calling application to block until the passed in event type has completed (such as waiting for the frame to be done, either before/after denoising), it does not change execution of the running task.
I don't currently see a dedicated cancel call, but does an
ospWait()
on sayOSP_WORLD_RENDERED
stop the frame rendering at that point? Or does the render continue? In my case I'm mostly interested in stopping the rendering at the earliest possible moment without needing the results. I assume the event order isOSP_WORLD_RENDERED
,OSP_FRAME_FINISHED
,OSP_TASK_FINISHED
.