On Fri, 22 Dec 2023 22:03:41 +0100 ichthyo <p...@ichthyostega.de> wrote:
>> On 19.12.23 16:25, Will Godfrey wrote: >>> I'm inclined to think that our best approach to the current problem is to >>> leave >>> specific work on LV2 until we have better separation of GUI from engine. >>> I've >>> been trying to work towards that for some time. > >On 20.12.23 03:07, ichthyo wrote: >> very much agreed to that! > >>> Making a version of the code (in the GUI) that builds the graphs, with the >>> necessary modifications to do this is frankly beyond me, so is it something >>> you'd have the time to investigate? >> of course I will take on that task. >> indeed I have analysed that code quite well during my last refactorings; >> thus I will have a closer look... > > >Hi Will, > >after looking into some details in the Code, with this Mail I'd like to start >a discussion how this topic could be approached. What we're looking for is >a more standardised, more streamlined form of data connection between the >GUI and the Core. <snipped for brevity> Having a fairly quick look through these options, the one I'd be least happy with would be number 2. We should work towards no possibility of the GUI taking down the core. Number 3 superficially looks the least invasive and most interesting. It occurs to me that the UI can be informed that a graph change has been *completed* with a 'graph changed' message via the existing ring buffer used for all other GUI updates. That ring buffer is non-blocking so if the GUI goes away the ring buffer will fill, and further messages are just thrown away. If all is well, the GUI would then request the data for updating its local copy. We need to keep in mind that request can be quite late as the GUI has a refresh rate of at least 33mS. It can be slower if there is a lot of GUI activity. Finally, a reminder that per instance there can be two EQ graphs visible at any time. System effect or Insert effect, and Part effect. -- Will J Godfrey {apparently now an 'elderly'} https://willgodfrey.bandcamp.com/ http://yoshimi.github.io Say you have a poem and I have a tune. Exchange them and we can both have a poem, a tune, and a song. _______________________________________________ Yoshimi-devel mailing list Yoshimi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/yoshimi-devel