Will .NET work for VSTs latency wise???

Aug 30, 2008 at 12:38 PM
I would love to use C#, .NET, this framework for writing VSTs, but how well will it actually work, especially latency wise? What happens when .NET decides to garbage collect, won't that potentially kill my VST latency?

Aug 31, 2008 at 1:59 PM
Yes, it probably will. So the key is not to induce a full garbage collection run. This means that you need to keep object's lifetimes short (Generation 0) or keep them around 'forever'.

Search the internet for arcticles about real-time programming in .NET. When you follow those guidelines in your plugin you should be alright.
Here's one to help you get going:

Hope it helps.

PS: I've let the provides sample Delay plugin run for about 10 minutes in vsthost.exe and it didn't produce any glitches whatsoever.
Sep 3, 2008 at 12:59 PM
Thanks, reading up on that (and all your KVR posts!-) was quite useful.