On 05/18/2014 11:39 PM, Tobias Doerffel wrote:
> 2014-04-06 11:19 GMT+02:00 Vesa <dii....@nbl.fi>:
>> I think this might be faster than reading values from a method one by
>> one. Instead of calling a method in automatablemodel (which maybe calls
>> other functions) per-frame, we could just retrieve a buffer of values
>> from the model, per-period. Also this way, we still won't bother
>> translating all the buffer values if the recipient doesn't want
>> sample-exact data.
>>
>> Does this make sense?
> Yes longterm a buffer-based solution should give much better
> performance. I suggest to encapsulate sample-exact
> controller-/automation data into its own class (where we later can
> pass additional information) and not just pass a buffer.

Yeah, that could be done. I'd like to avoid too much abstraction here
though, just so we don't waste the advantage in CPU savings that passing
buffers would grant. So maybe something like a simple class that only
contains a sampleFrame* and maybe just a length variable, for now... it
can then be extended later if we need to.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
LMMS-devel mailing list
LMMS-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to