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
Streaming bitmaps in ruby dynamically (can it be done?)
1 post
• Page 1 of 1
Streaming bitmaps in ruby dynamically (can it be done?)
I wonder if its possible to dynamically stream bitmaps into a ruby module without the memory being saved inside it...
This is my problem:
- while ruby is more efficient than old SM primitives to make knobs per example, using way less components...
there is still a memory problem related to ruby...
every time you use a button or a knob made in ruby, that uses a bitmap as display... the ruby code will retain in memory the size of the module and its information...
and is the direct result of this? if you have a plugin with many knobs... even if they are using the same source or the same bitmap, ruby still utilizes the memory for each inside its code... resulting the plugin to waste unnecessary memory in load outs... per example... assuming a simple PNG file would use 600-800kb, that multiplied per hundreeds of dozens or hundreeds of buttons will cause the following:
- Your plugin will load slower... and will use 60 times more memory than it should for the use of the bitmaps...
So what i want... is to find a way to only utilzie the memory of a button once... and then replicate it for each instance dynamically, being each knob only focus in rotation and saving states and presets...
Streaming the images dynamically inside the project....
This way i think overall plugins would become way less demanding in terms of memory and way more light to load, copy etc etc...
meanwhile i didnt found the solution for bitmaps, and i hope someone can guide me or help me with this...
i managed to work out a fully vector knob made in ruby... which by comparison with bitmap knobs, are incredibly lighter on memory...100x times more light... plugin load faster using large amounts of buttons...
This is my problem:
- while ruby is more efficient than old SM primitives to make knobs per example, using way less components...
there is still a memory problem related to ruby...
every time you use a button or a knob made in ruby, that uses a bitmap as display... the ruby code will retain in memory the size of the module and its information...
and is the direct result of this? if you have a plugin with many knobs... even if they are using the same source or the same bitmap, ruby still utilizes the memory for each inside its code... resulting the plugin to waste unnecessary memory in load outs... per example... assuming a simple PNG file would use 600-800kb, that multiplied per hundreeds of dozens or hundreeds of buttons will cause the following:
- Your plugin will load slower... and will use 60 times more memory than it should for the use of the bitmaps...
So what i want... is to find a way to only utilzie the memory of a button once... and then replicate it for each instance dynamically, being each knob only focus in rotation and saving states and presets...
Streaming the images dynamically inside the project....
This way i think overall plugins would become way less demanding in terms of memory and way more light to load, copy etc etc...
meanwhile i didnt found the solution for bitmaps, and i hope someone can guide me or help me with this...
i managed to work out a fully vector knob made in ruby... which by comparison with bitmap knobs, are incredibly lighter on memory...100x times more light... plugin load faster using large amounts of buttons...
- Attachments
-
- Ruby Knobs (only code) examples.fsm
- (8.87 KiB) Downloaded 1452 times
- Ricciardo
- Posts: 51
- Joined: Wed Sep 11, 2013 10:19 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 55 guests