Are you checking that the hash of the upstream Op has changed before calling 
forget_request()>

-jonathan

On Mar 28, 2012, at 12:25 PM, Nathan Rusch wrote:

> To follow up, forget_request() seems to slow my updates down quite a bit more 
> than tree changes without it in place. (Is it dumping all the caches of the 
> upstream Ops and forcing them to be recalculated?) If there are other methods 
> of working around the tree update issues, I would love to hear them.
> 
> Thanks again,
> 
> -Nathan
> 
> -----Original Message----- From: Nathan Rusch
> Sent: Wednesday, March 28, 2012 12:13 PM
> To: Nuke plug-in development discussion
> Subject: Re: [Nuke-dev] Using input image data in draw_handle
> 
> Thanks for the quick response Ivan. I tried new_request_pass(), but it
> didn't seem to make a difference. However, after looking through Op.h some
> more to see what else was available, I found Op::forget_request(), which
> seems to do the trick if called at the end of the method that pulls the
> image data, so thanks for putting me on the right track!
> 
> -Nathan
> 
> 
> -----Original Message----- From: Ivan Busquets
> Sent: Wednesday, March 28, 2012 11:57 AM
> To: Nuke plug-in development discussion
> Subject: Re: [Nuke-dev] Using input image data in draw_handle
> 
> Hi Nathan,
> 
> When you call image->request() within draw_handles(), I think you
> either need to update the "count" each time, or you can use
> new_request_pass() right before your request() call.
> 
> I believe that might help.
> 
> Cheers,
> Ivan
> 
> _______________________________________________
> Nuke-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev 
> _______________________________________________
> Nuke-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to