Saturday, 2015-04-18

*** gianMOD_ has quit IRC00:03
*** ricardocrudo has quit IRC00:10
*** rncbc has joined #lv209:09
*** gianMOD has joined #lv209:19
*** falktx has joined #lv209:40
*** gianMOD has quit IRC10:40
*** gianMOD has joined #lv210:40
*** gianMOD has quit IRC10:41
*** gianMOD has joined #lv210:41
*** gianMOD has quit IRC10:42
*** gianMOD has joined #lv210:52
*** ricardocrudo has joined #lv210:56
falktxdrobilla: hey, you home safe?11:06
falktxdrobilla: I started updating my dpf pugl code to the latest one, I have a few changes/proposals already https://github.com/falkTX/pugl/commits/master11:07
*** gianMOD has quit IRC11:09
drobillafalktx: Nope, Halifax.11:11
drobillafalktx: Great.  Heading out now, but I'll poke through it11:11
*** ricardocrudo has quit IRC11:35
*** falktx` has joined #lv211:37
*** falktx has quit IRC11:37
*** aombk has joined #lv211:44
*** edogawa has joined #lv211:48
*** gianMOD has joined #lv212:04
*** gianMOD has quit IRC12:09
*** ricardocrudo has joined #lv212:16
*** ricardocrudo has quit IRC12:31
*** ricardocrudo has joined #lv212:31
*** falktx` has quit IRC12:35
*** falktx has joined #lv212:35
*** falktx has quit IRC12:38
*** falktx has joined #lv212:40
*** gianMOD has joined #lv213:20
*** HarryHaaren has joined #lv213:37
*** edogawa_ has joined #lv214:02
*** edogawa has quit IRC14:05
*** curlymorphic has quit IRC14:11
*** edogawa_ is now known as edogawa14:12
*** curlymorphic has joined #lv214:14
*** mlpug has joined #lv214:26
*** falktx has quit IRC14:35
*** gianMOD has quit IRC15:16
*** gianMOD_ has joined #lv215:20
*** falktx has joined #lv215:22
*** gianMOD_ has quit IRC15:25
*** gianMOD has joined #lv216:59
*** ricardocrudo has quit IRC17:09
*** ricardocrudo has joined #lv217:12
*** gianMOD has quit IRC17:13
*** gianMOD has joined #lv218:24
*** gianMOD has quit IRC18:29
falktxrgareus: your fix for osx context seems to do the trick for me, but now some pixmaps are not drawn...19:05
rgareusfalktx: do you maybe draw them while not having the GL context?19:07
falktxI think I may be creating the textures during that time, yes19:07
*** ddom has joined #lv219:08
wrlalways gotta have a context bound when doing openGL work19:08
wrlan issue with pugl is that it doesn't necessarily make that easy19:08
rgareuswhat wrl said19:08
wrlcan you bind a context in pugl outside of a draw call?19:08
falktxyes19:08
rgareuswrl: resize also takes the context19:09
rgareusand well, you can always hack pugl.19:09
wrlof course, yeah19:09
wrl(the way i handle this in rutabaga is having a Big Window Lock, and rtb_window_lock() also acquires the context)19:09
rgareusfalktx: odd, that it works on Linux, though.19:09
falktxI haven't tested it yet19:10
falktxthe issue should be the puglLeaveContext when resize finishes19:10
falktxthe linux code didn't had that19:10
rgareuswrl: there is no callback from the plugin back to the lib to ask acquire the context.19:10
falktxrgareus: the is in the new pugl19:10
wrlnew pugl?19:10
falktxpuglEnterContext and puglLeaveContext19:10
rgareusthat's wrong  IMHO19:11
rgareusthe plugin has no idea what thread it is in.19:11
rgareusand it could take the context from some other GUI.19:11
rgareus(e.g  asking for the context from the port_event() callback   will cause major trouble)19:12
wrlyeah19:12
falktxthe thing here is that I need a valid context during widget contruction19:12
wrlbut that's more a plugin concern than a UI toolkit one though19:12
falktxto allocate some textures19:12
wrli still do async messaging in panther19:12
wrli.e. if i get a set_parameter() and the UI is open i send it an async message to update19:13
rgareusif the API is available to plugin authors, someone will use it..19:13
* wrl shrugs19:13
wrllocking in audio code causes some pretty obvious problems19:13
wrlit's a very "well, don't do that then" issue19:13
*** mlpug has quit IRC19:13
rgareusodd LV2/pugl plugins kills context for nice rutabaga plugin  (and you're screwd)19:14
wrli don't follow?19:14
rgareuswrl: if pugl has a puglEnterContext()  API and some plugin loaded in to a host uses it from set_parameter()  the rendering of all other GL will go downhill.19:15
rgareuss/will/may/19:15
wrlrgareus: yeah i ran into that problem with ableton19:15
rgareusso ideally pugl should abstract it away..  one less problem.19:16
wrlyeah, fair19:16
wrlwell, i mean19:17
wrlthat's just more bookkeeping from the hosts's perspective19:17
wrlthough yes i can see that being a problem19:18
falktx[NSOpenGLContext clearCurrentContext]; is messing things up for me19:21
wrlwell yeah19:22
rgareusOSX and Windows GUI are single threaded, standard X11 is as well.  and pugl knows.  So it can take and releases the context19:27
rgareusI dunno about wayland19:28
wrli wouldn't worry about wayland at all at this pint19:29
wrlpoint19:29
wrlit'll require a fairly radical re-thinking of how plugin embedding works19:29
falktxnow it works!19:29
falktxhttps://i.imgur.com/BN6pL9i.png :D19:30
falktxI have to try windows too, maybe that got broken...19:31
falktxhmm do they work on ardour...19:32
wrloh hey, nice!19:35
falktxmverb text via nanovg is working too19:37
falktxoh ardour crashed19:39
falktx[PuglOpenGLView keyDown:] + 21619:40
falktxpugl osx crashes when pressing "alt"19:40
falktxat [chars characterAtIndex(0]19:40
*** ddom has quit IRC19:41
aombkcan i make lv2 plugins with python?19:41
falktxUIs, yes19:42
falktxDSP/Audio,  hmm better not19:43
aombktoo slow?19:43
falktxsuuuuuper slow19:43
*** NickSB has quit IRC19:43
falktxworks in FLS19:52
*** ddom has joined #lv220:12
*** NickSB has joined #lv220:20
drobillaI am generally of the opinion that multi-threaded UI code is insane20:28
drobillaExcept in certain circumstances20:28
drobillaand there's roughly a 99.999999999999999999999% chance that yours is not one of them :)20:28
drobillaThat said, I have roughly 0 idea WTF you're all on about WRT contexts, or why pugl makes this any harder/easier than it inherently is with GL, but... well, patches welcome20:29
falktxwell, I have quite a lot from today...20:30
falktxhave you seen the list? https://github.com/falkTX/pugl/commits/master20:30
falktxhave fun! :D20:31
rgareusaombk: python is not realtime safe (it has a global lock).   for a GUI that's fine but for DSP code most certainly not.20:33
rgareusaombk: obligatory read: http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing20:34
rgareusit's not about "speed" (I'm sure python can be fast enough)  but about "reliability"20:35
rgareusfalktx: I hoped someone would come up with a better solution that the static BYTE kbs[256];  hack20:37
drobillafalktx: No, just got back in.  Will probably be later next week before I can really do anything20:40
falktxnp20:40
falktxI've been slowly updating to your current code. still need to get through the new events stuff20:41
drobillaThough I have some 36 hours on a train ahead of me, so who knows...20:41
* drobilla adds remote and fetches20:41
falktxdrobilla: some of the changes are from me, some from rgareus20:42
falktxI import some fixes from rgareus from time to time :)20:42
drobillaI have you, harry, and robtk as remotes, but robtk isn't directly mergeable20:43
drobillaMay be conflicts if you've manually merged some of those too20:43
falktxmy repo is a clone of yours with manually+separated commits20:44
falktxthere's still more to come20:44
drobillaMuch as I generally avoid making things better for hypothetical imaginary future developers who do not exist, that's what this is :)20:44
drobillaWill cram the 'how to do cairo on GL' stuff from robtk at some point.  Probably some things in rutabega that are done better, but I'm pretty GLtarded20:45
falktxheh, harry's commit changed the full whitespace...20:46
drobillaFFS20:47
falktxthis one https://github.com/harryhaaren/openAV-AVTK/commit/8a083444e208489bca13617951108b3d07ed798f20:48
drobillaHm, why don't I see that in a diff of our branches...20:49
* falktx notices some avtk specific stuff in there20:49
drobillaPretty sure these spacey indents were never in master.  Don't know what's up there20:49
falktxmaybe the old code was the broken one20:49
* drobilla is infamously anal about such things20:50
HarryHaarenfalktx, drobilla that is *not* my branch of PUGL - its my internal PUGL in AVTK. They're different20:59
HarryHaarenmy PUGL is here: https://github.com/harryhaaren/pugl20:59
HarryHaarenwhich doesn't have said whitespace etc21:00
HarryHaarenI (manually) chance chop and fix stuff in my AVTK PUGL, and the push proper changes to official PUGL21:00
HarryHaarenusing my AVTK PUGL changes is not recommended - as noticed, I'm not careful with whitespace, hacking / etc21:00
falktxah ok, makes sense21:01
falktxsome of my commits will conflict with yours21:02
HarryHaarenI don't have any commits that drobilla hasn't already merged into his PUGL IIRC21:02
falktxthis one https://github.com/falkTX/pugl/commit/dd3d3fa6d8429292aa9591f9ee2c0f28b6dd275b21:02
falktxwe'll figure out something. I'm not using cairo myself so that part of the code I'll leave to you21:03
drobillaAh, okay.  The above mentioned is the branch I have as a remote21:05
HarryHaarenI've denounced the OpenAV release system earlier on today - Fabla2 next, then I'll look at where AVTK + PUGL..21:05
HarryHaarenyep that's good.21:05
HarryHaareneventually a git sub-module of PUGL will exist in AVTK - during hacking Cairo/PUGL its too much hassle, the commit-push-pull-test loop is nasty.21:06
falktxlater, cya21:09
*** falktx has quit IRC21:09
rgareusHarryHaaren: if you hack on the same machine.. no push/pull loop is needed, is it?21:12
rgareusHarryHaaren: is AVTK itself also a submodule?21:12
HarryHaarenrgareus, AVTK in this case is a normal git repo, a "local pull" from the PUGL repo is possible, but it still implies a commit for any change-set21:13
HarryHaarenwhich is the bit I find annoying - I hack, forget something, must do a new commit "fix missing ;" etc21:13
*** drobilla has quit IRC21:18
*** drobilla has joined #lv221:19
drobillaThat's what rebase is for21:20
drobillaAbility to commit whatever, comit some more stuff, then clean up that queue when done to be sane and pushable is one of the best things about git (and thing I miss most when I have to deal with stuff still in svn)21:21
drobillaThough I don't really understand the issue here.  You want to.. not.. commit.. changesets?21:22
HarryHaarenduring development of code in 2 repos, i don't want to commit things in one to test them in the other. Hence my weird copy/paste approach to PUGL / AVTK-PUGL21:28
drobillaDo you need to?  At the end of the day the submodule is still in your tree, and if you edit the files, well, they're edited21:30
* drobilla generally has no idea how to deal with this problem either, and loathes a full git migration / integration of libs in lv2 for this reason21:30
HarryHaarenthe current approach works, and that's enough for me21:31
HarryHaareni have the same with AVTK / PUGL / Fabla2 now as you with libs.21:31
drobillaFair enough.  The branch I see is sane so I don't personally care.  Sounds a bit tedious though :)21:32
drobillaRe: LV2 I'll probably just put them in the same repo straight up and avoid it all.  None of them are particularly useful outside that context anyway21:33
drobillaOther'n serd/sord which probably just won't be integrated at all21:33
drobillaMaaaaaybe I'll submodule those since they change infrequently, but LV2 can't install libs that may be installed elsewhere, then there's *that* whole thing to deal with21:33
*** falktx has joined #lv221:51
*** edogawa has quit IRC21:55
*** aombk2 has joined #lv222:45
*** aombk has quit IRC22:48
*** ddom has quit IRC23:46

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!