*** edogawa has quit IRC | 00:34 | |
rgareus | ColaEuphoria: no | 00:51 |
---|---|---|
rgareus | ColaEuphoria: well, you can hack something up, using a static global variable | 00:51 |
rgareus | ColaEuphoria: increment it when instantiating the plugin, decrement it when the plugin is destoyed | 00:52 |
ColaEuphoria | i was afraid i'd need to do that | 00:52 |
rgareus | ColaEuphoria: I use that approach for fftw thread safety (a static global pthread_mutex) | 00:53 |
ColaEuphoria | it's just a bit precarious because if the plugin crashes, cleanup() won't be called | 00:53 |
rgareus | but ideally there'd be no need for this. | 00:53 |
rgareus | ColaEuphoria: if the plugin crashes you've lost anyway | 00:54 |
ColaEuphoria | fair enough | 00:54 |
rgareus | and if the plugin is process-separated in the host (sandboxed) multiple instances won't see each other to begin with. and otherwise crashes will take down the host | 00:55 |
rgareus | I don't think there is a host that process-separates LV2, Carla maybe, IDK. | 00:57 |
*** NickSB2 has joined #lv2 | 01:40 | |
*** NickSB2 has quit IRC | 03:31 | |
*** drobilla has joined #lv2 | 04:18 | |
*** edogawa has joined #lv2 | 07:18 | |
*** ricardocrudo has joined #lv2 | 08:29 | |
*** brummer has joined #lv2 | 08:47 | |
brummer | morning all | 08:48 |
ColaEuphoria | morning | 08:50 |
brummer | <ColaEuphoria> do you realy need to count instances, or do you just need to ensure you "talk" to the right instance? | 08:59 |
ColaEuphoria | @brummer: I already implemented the simple global variable counter. I just needed to know if the number of instances was zero so that I could free a global lookup table on cleanup(). | 09:02 |
ColaEuphoria | Even if freeing 512 bytes worth of lookup is hardly a wash | 09:02 |
brummer | <ColaEuphoria> ah, okay. | 09:03 |
*** NickSB2 has joined #lv2 | 09:24 | |
*** ricardocrudo has quit IRC | 09:31 | |
*** ventosus has joined #lv2 | 10:01 | |
*** ricardocrudo has joined #lv2 | 10:02 | |
*** brummer has quit IRC | 10:09 | |
*** brummer has joined #lv2 | 11:49 | |
rgareus | ColaEuphoria: what parameters does that LUT depend on? | 12:15 |
*** NickSB2 has quit IRC | 12:58 | |
*** brummer has quit IRC | 13:09 | |
*** rncbc has joined #lv2 | 14:12 | |
*** brummer has joined #lv2 | 14:26 | |
*** rncbc has quit IRC | 14:58 | |
*** ventosus has left #lv2 | 15:32 | |
*** brummer has quit IRC | 15:43 | |
*** NickSB2 has joined #lv2 | 16:51 | |
*** NickSB2_ has joined #lv2 | 17:07 | |
*** mouldy-marmoset has quit IRC | 17:19 | |
*** deva has joined #lv2 | 17:27 | |
*** ricardocrudo has quit IRC | 18:17 | |
*** ventosus has joined #lv2 | 18:54 | |
*** curlymorphic has joined #lv2 | 18:55 | |
*** flexus has joined #lv2 | 19:45 | |
*** ricardocrudo has joined #lv2 | 19:47 | |
*** deva has quit IRC | 19:47 | |
*** NickSB3 has joined #lv2 | 19:51 | |
*** curlymorphic has quit IRC | 20:07 | |
*** LAbot has joined #lv2 | 20:11 | |
*** tytel has joined #lv2 | 20:39 | |
*** brummer has joined #lv2 | 20:40 | |
*** brummer has quit IRC | 20:44 | |
ColaEuphoria | @rgareus: none; it's a sine wave lookup table | 21:36 |
rgareus | ColaEuphoria: why not hardcode it? | 21:38 |
rgareus | ColaEuphoria: as static const float | 21:38 |
ColaEuphoria | rgareus: i might end up doing that. when i first implemented it, it was more than 16 kB, because i was testing for sound quality before i started optimizing for cache | 21:42 |
rgareus | 16KB OTOH is also not troublesome to replicate per plugin instance | 21:44 |
rgareus | ie either hardcode it or don't bother. if 16K are not shared accross multiple instances that's no a big real | 21:44 |
rgareus | deal | 21:44 |
rgareus | while optimizations are good (every KB can matter). in reality a user will also load drumgizmo (which loads 2-6 GB of drum-samples into RAM) and a few KB won't matter :) | 21:48 |
*** tytel has quit IRC | 21:48 | |
*** ventosus has left #lv2 | 21:49 | |
*** tytel has joined #lv2 | 21:50 | |
ColaEuphoria | rgareus: it's no longer 16 kB, i've managed to get it down to 512 bytes and only storing 1/4th the cycle of a sine wave | 21:51 |
ColaEuphoria | also using 16 bit ints | 21:52 |
*** tytel has quit IRC | 22:04 | |
*** tytel has joined #lv2 | 22:06 | |
*** tytel has quit IRC | 22:08 | |
*** flexus has quit IRC | 22:11 | |
*** tytel has joined #lv2 | 22:36 | |
*** tytel has quit IRC | 22:45 | |
*** tytel has joined #lv2 | 23:37 | |
*** tytel_ has joined #lv2 | 23:42 | |
*** tytel has quit IRC | 23:42 | |
*** edogawa has quit IRC | 23:46 | |
*** tytel has joined #lv2 | 23:49 | |
*** tytel_ has quit IRC | 23:49 | |
*** tytel_ has joined #lv2 | 23:57 | |
*** tytel has quit IRC | 23:57 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!