Re: GPU FxPlugs - what happens if the image is too big?
Re: GPU FxPlugs - what happens if the image is too big?
- Subject: Re: GPU FxPlugs - what happens if the image is too big?
- From: Darrin Cardani <email@hidden>
- Date: Tue, 30 Apr 2013 09:56:13 -0700
On Apr 30, 2013, at 7:44 AM, Paul Miller <email@hidden> wrote:
> Is it possible to fall back automatically to the CPU path if something "goes wrong" when attempting to process the filter in GPU mode?
>
> I tried returning NO from the renderOutput function, but it just put up an alarming screen saying it couldn't render, even though I had CPU mode enabled as well (I expected it to call renderOutput again in CPU mode).
If you can detect that your GPU render failed (and you are then returning "NO" from your -renderOutput: method), you can simply try again yourself instead of returning "NO", can't you? (That is, you can download the input from the card, process it, and upload it back to the card when done.) We assume that you've exhausted your available options if you return NO, hence the red screen saying that we couldn't process.
> Also, what happens if I try to edit 4K footage on a machine with a 256MB graphics card? Does FCP just skip the GPU path in that case, or does it try to tile somehow, or does it just punt and tell you to upgrade? (the last is my personal preference - attempting to support 5 year old hardware is not terribly fun).
I believe we crop the image to the max allowed by the user's card. I'm not sure why the decision was made to crop instead of scale, as that decision was made many many years ago.
One option you have is to check the user's config, and if it will likely cause this type of problem, return "NO" for "canRenderHardware" in your -frameSetup method. That way you seamlessly switch from GPU to CPU when appropriate and the user gets their render.
Darrin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden