Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: correctly resizing view w/ QCRenderer [Solved]



Thanks Pierre. To be clear, I am not using 0 for time value. The solution I chose was to use a time value based on the current time rather than using the time passed into the displayLink. That solution works well, but I like your idea of saving the most recent time value and reusing that if I'm not rendering from within the displayLink.

-Chris


On Jul 12, 2007, at 12:28 AM, Pierre-Olivier Latour wrote:

The above is not complete because "renderAtTime:" doesn't know how to handle a nil value for the time. I'm not sure what the best solution is, so I decided to simply ignore the incoming time value entirely. In renderAtTime:, here is what I changed:

I don't think you should be using 0 as if the composition is currently rendering far in time, you're gonna have it jump backward and this might affect performance.


Just store the time of the latest rendered frame and re-use it.


________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Apple, Inc.




_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >correctly resizing view w/ QCRenderer (From: Chris Silverberg <email@hidden>)
 >Re: correctly resizing view w/ QCRenderer (From: Chris Silverberg <email@hidden>)
 >Re: correctly resizing view w/ QCRenderer [Solved] (From: Chris Silverberg <email@hidden>)
 >Re: correctly resizing view w/ QCRenderer [Solved] (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.