Too vague, okay. What if a plugin requested to allocate 24GB for all of it's sample data? Would you want to implement all the code in your plugin to make sure this doesnt crash/slowdown your DAW? Or let the host figure it out for the plugin?Vokbuz wrote: Sat Jul 04, 2020 7:00 amThis description is too vague.camsr wrote: Sat Jul 04, 2020 5:20 am The host would know about the plugin via the functions the plugin calls to request (and remember, shared) system resources
What do you mean by "available"? Allocated by another plugin or host? It is probably used. If it is not used by others, why is it still allocated???camsr wrote: Sat Jul 04, 2020 5:20 am A simle example could be, if the plugin made a large allocation. Instead of just doing it, and letting the system figure it out, the host could confirm that it's readily available to make first.
It would be beneficial to make something to avoid "duplication of concerns". The plugins should be able to get some kind of data without having to have the same boilerplate code in every one of them. Another example is running the CPUID instruction, to check for supported instructions. Why should every plugin be concerned about runing this instruction, when the host can run it once, and relay the relevant information to the plugin? The results of CPUID do not change much, afaik.
