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
Ruby Questions
3 posts
• Page 1 of 1
Ruby Questions
What's the preferred way to to implement user interface controls (button, slider, displays, etc) using the Ruby module (yes I did read the manuals before):
- use an Ruby module for each control?
- use a single Ruby module that contains all controls?
How efficient is the Ruby module (CPU, memory)? Does Flowstone start an instance of a Ruby interpreter for each Ruby module? Or is there only one interpreter?
- use an Ruby module for each control?
- use a single Ruby module that contains all controls?
How efficient is the Ruby module (CPU, memory)? Does Flowstone start an instance of a Ruby interpreter for each Ruby module? Or is there only one interpreter?
- rlr
- Posts: 27
- Joined: Tue Jul 13, 2010 9:17 pm
Re: Ruby Questions
You can run lot's of ruby modules rather than one big one with out any effects on CPU etc.
- DSP
- Posts: 150
- Joined: Fri May 14, 2010 10:55 pm
Re: Ruby Questions
Hi rlr!
In FlowStone 3 we'll be providing updates to all the current interface controls using Ruby.
However, in FlowStone 2 we have a few controls already that use Ruby. These are under the 'vintage' heading. If you search for 'Vintage Knob' you'll see how we've used Ruby to make an animated knob (one that has a bitmap frame for each rotation).
In this module we decided to separate the drawing from the interaction and used a Ruby component for each. This is likely to be the way that we approach other interface control modules.
Have a look inside. Compared to the existing knobs which don't use Ruby I hope you'll find it's much easier to follow. In addition it uses around 90% fewer components.
In FlowStone 3 we'll be providing updates to all the current interface controls using Ruby.
However, in FlowStone 2 we have a few controls already that use Ruby. These are under the 'vintage' heading. If you search for 'Vintage Knob' you'll see how we've used Ruby to make an animated knob (one that has a bitmap frame for each rotation).
In this module we decided to separate the drawing from the interaction and used a Ruby component for each. This is likely to be the way that we approach other interface control modules.
Have a look inside. Compared to the existing knobs which don't use Ruby I hope you'll find it's much easier to follow. In addition it uses around 90% fewer components.
-
support - Posts: 151
- Joined: Fri Sep 07, 2012 2:10 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 75 guests