Re: Avoiding parallel frames processing
Re: Avoiding parallel frames processing
- Subject: Re: Avoiding parallel frames processing
- From: Dave Howell via Pro-apps-dev <email@hidden>
- Date: Wed, 28 Oct 2020 16:12:41 -0700
Could Bret just use the Timing API to make one frame depend on the contents of
a previous frame? Then when handed the previous frame, he could just ignore it
and render the current frame.
Dave at Avatron
> On Oct 28, 2020, at 9:01 AM, Darrin Cardani via Pro-apps-dev
> <email@hidden> wrote:
>
> I’m not sure how easy it is to ensure you get them in the proper order, but
> you can always use a lock of some sort. For example in your
> -renderDestination: method, you could lock an NSLock at the start. That will
> prevent 2 calls to the method on different threads from running at the same
> time. The issue is that the order may not be sequential. (It depends on a
> number of asynchronous things happening in the host app.) It might be
> possible to note the time of the last frame processed and if the current time
> is more than 1 frame later, hold off until a frame closer to the last
> rendered one gets rendered? It seems like you’d have issues if the user moves
> the playhead in that case, but that’s the only thing I can think off of the
> top of my head.
>
> Darrin
>
>> On Oct 28, 2020, at 8:57 AM, Bret Battey via Pro-apps-dev
>> <email@hidden <mailto:email@hidden>> wrote:
>>
>> Hi ProAppsDev,
>>
>> In doing my FxPlug 4.X conversions, I understand that now the plugin can and
>> will process multiple frames simultaneously if the GPUs are available to do
>> so, and that there is no longer a switch to control whether this happens.
>>
>> I use FxPlugs for my own nefarious artistic purposes, so sometimes I break
>> rules, since it only needs to work for me. One of my FxPlugs relies on
>> frame-to-frame feedback (a rule-breaker for sure), which the new parallel
>> frame-processing paradigm in turn prevents. I’m just wondering if there
>> might be an underhanded trick available for me to get around this and force
>> sequential processing of the frames for an FxPlug. I might even consider a
>> soft-switch to disable my second GPU if I were truly desperate…
>>
>> Fully understandable if there is not a way.
>>
>> Thanks,
>> -=Bret
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Pro-apps-dev mailing list (email@hidden
>> <mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden <mailto:email@hidden>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Pro-apps-dev mailing list (email@hidden
> <mailto:email@hidden>)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden <mailto:email@hidden>
_______________________________________________
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