View Single Post
Old 03-22-2019, 02:55 PM   #231
sai'ke
Human being with feelings
 
sai'ke's Avatar
 
Join Date: Aug 2009
Location: NL
Posts: 1,458
Default

I just duplicate data (filter/shaper coeffs), that way, nobody is waiting for filter handoff and I don't need locking. When the UI changes something, I set a flag that the audio filters need updating, but the audio thread does this when it gets to it. The coeffs of the audio filter instance get updated in the audio thread only. And the gfx ones in the gfx thread only. Pseudo objects make this pretty easy. Can just reuse the same functions

Usually locking is best avoided when reasonably possible I think.
__________________
[Tracker Plugin: Thread|Github|Reapack] | [Routing Plugin: Thread|Reapack] | [More JSFX: Thread|Descriptions|Reapack]

Last edited by sai'ke; 03-22-2019 at 03:14 PM.
sai'ke is offline   Reply With Quote