Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
Host Audio Engine Logic
Goto page Previous  1, 2, 3
Benutzername
KVRist
- profile
- pm
PostPosted: Wed Nov 14, 2012 3:18 am reply with quote
I've no experience with mono on a Mac but at least under Linux you'll get a long way with it.

Don't worry much about speed issues. .NET applications use optimized machine code on execution, just like any C++ application. The major difference is that it will be compiled just before it's executed by the user and not when the developer presses F7.

I've created a rendering engine with realtime raytracing in plain C# and it was not much slower than the highly optimized C++ version.

Just try to minimize PInvoke overhead whenever you can and try to avoid the garbage collection in realtime threads if possible (reuse objects, buffers etc.)
^ Joined: 23 Jan 2008  Member: #171645  Location: Hamburg, Germany
DougCox
KVRer
- profile
- pm
PostPosted: Wed Nov 14, 2012 8:10 am reply with quote
You could look at my program PianoRollComposer's source code. It's in C, for Windows, but it's very simple and should be easy to follow. Search for VSTthread. It sends MIDI input to a VST plugin and then sends the wave data to ASIO for audio output. http://jdmcox.com
^ Joined: 26 Feb 2010  Member: #226780  
obiwanjacobi
KVRist
- profile
- pm
- e-mail
PostPosted: Thu Nov 15, 2012 4:35 am reply with quote
Benutzername wrote:
I've no experience with mono on a Mac but at least under Linux you'll get a long way with it.

Don't worry much about speed issues. .NET applications use optimized machine code on execution, just like any C++ application. The major difference is that it will be compiled just before it's executed by the user and not when the developer presses F7.

I've created a rendering engine with realtime raytracing in plain C# and it was not much slower than the highly optimized C++ version.

Just try to minimize PInvoke overhead whenever you can and try to avoid the garbage collection in realtime threads if possible (reuse objects, buffers etc.)


+1

My thoughts exactly! I am also a lot more productive with C# compared to C++ - but thats just me HiHi
----
Grtx, Marc Jacobi.
Blog | VST.NET | MIDI.NET
^ Joined: 18 Jul 2007  Member: #155805  Location: Netherlands
All times are GMT - 8 Hours

Printable version
Page 3 of 3
Goto page Previous  1, 2, 3
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012