Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Memory allocation

For general discussion related FlowStone

Memory allocation

Postby stw » Tue Jan 07, 2014 10:07 pm

One thing i remember from good ole SM times is a memory allocation prob after deleting VST plugs.
I just ran into the same thing. After deleting an instance of my plug app. 30% of the used memory when loaded will not be released. In my case that means every load/unload increses the host memory use 30-50 MB. (Observed in Cubase and Reaper)
What discovers the next prob right away.
Without hacking the hell out the plug and getting rid of all what can be killed the whole thing is blown up to 150MB/instance. Though i use 200knobs/switches (all sharing the same 10 bitmaps) and 4 delays which occupy 20MB altogether this is way too much.
But that's another story...

Does anyone know if the memory alloc problem was fixed anytime or if there's anything what could be done to avoid it?
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Memory allocation

Postby Nubeat7 » Tue Jan 07, 2014 11:11 pm

confirmed in renoise too, also when plugs dont use any images and have just 5 (ruby) knobs :?

also tested with just one lightweight ruby knob for vol and a clip fx plugin, nothing else, memory increases with every reload :(
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Memory allocation

Postby Tzarls » Tue Jan 07, 2014 11:27 pm

I had this problem with SM, but in my case I was using samples, so problem was a lot worse. everytime someone unloads my VST, 125MB of memory remains occuppied by samples than won´t be used again.

I never upgraded to FS so I don´t know if the problem is the same when using samples. You should check and inform the developers.
Tzarls
 
Posts: 54
Joined: Thu Oct 21, 2010 2:10 am

Re: Memory allocation

Postby Nubeat7 » Tue Jan 07, 2014 11:36 pm

what i also found out when compaaring with other plugins is that some of the old tobybear plugs have the same effect but in a smaller rate, but also some of the big ones like effectrix and wizoo verb are increasing the memory when reloading them but just 2 or 3 times then they keep the memory at the same level and stop increasing when reloading..

how weird?
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Memory allocation

Postby stw » Thu Jan 09, 2014 11:40 pm

Before i bother Malc with a bug report i prepared a small test .fsm to get some user confirmation.
It contains two modules each creating a 128MB memory buffer. One with the mem create prim and one with a variable declaration in code.
On my VST hosts the Mem Create prim version loads and unloads fine while the code version locks the complete memory buffer when unloading it!

Would be nice to get feedback from some testers.

memtest.fsm
(128.28 KiB) Downloaded 845 times
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Memory allocation

Postby stw » Fri Jan 17, 2014 11:39 am

Ok, i bothered Malc just without any other user approvements. Here's the result.
As quick as in earlier bug conversations i had with him he presented the solution. A new VST.dll :!:
I'm permitted to share it here so feel free to download it in case you want to export a proper working VST plug.

vst.zip
- Bug Fix: Memory buffer is freed correctly when unloading the plug.
(1.72 MiB) Downloaded 882 times
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Memory allocation

Postby Nubeat7 » Fri Jan 17, 2014 3:49 pm

thx stw for sharing this, but what to do with this dll?
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Memory allocation

Postby stw » Fri Jan 17, 2014 4:18 pm

Exchange it with the original .dll in your Flowstone folder
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Memory allocation

Postby Nubeat7 » Fri Jan 17, 2014 4:39 pm

ahh, ok thanks.
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Memory allocation

Postby TrojakEW » Fri Jan 17, 2014 10:27 pm

Regarding vst.dll I found that dspr uses upx to compress file. So I just did few test (with different compression settings) and found that uncopressed dll uses 1mb less memory (in my case) and plugin load three times faster. Original, compressed dll file is (roughly) 1.8mb and uncopressed is 7mb - that's only drawback.
User avatar
TrojakEW
 
Posts: 111
Joined: Sat Dec 25, 2010 10:12 am
Location: Slovakia

Next

Return to General

Who is online

Users browsing this forum: tulamide and 64 guests