<html><head></head><body>Indeed, pd-l2ork moves entire selection by tag, so instead of redrawing everything, out issues single tcl/tk command. The only thing that still redrawed every time when displaced is gop-enabled patcher.<br>
<br>
Ivica Ico Bukvic, D.M.A<br>
Composition, Music Technology<br>
Director, DISIS Interactive Sound & Intermedia Studio<br>
Director, L2Ork Linux Laptop Orchestra<br>
Assistant Director, CCTAD<br>
Virginia Tech<br>
Department of Music<br>
Blacksburg, VA 24061-0240<br>
(540) 231-6139<br>
(540) 231-5034 (fax)<br>
<a href="http://disis.music.vt.edu">disis.music.vt.edu</a><br>
<a href="http://l2ork.music.vt.edu">l2ork.music.vt.edu</a><br>
<a href="http://ico.bukvic.net">ico.bukvic.net</a><br><br><div class="gmail_quote">Jonathan Wilkes <jancsika@yahoo.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif">I believe Ivica made such a modification in Pd-l2ork-- whatever the case, moving many iemguis in <br />Pd-l2ork is much snappier than in Vanilla or Pd-extended. But I haven't measured the cpu load.<br /><br />-Jonathan<br /><br /><br />----- Original Message -----<br />> From: Hans-Christoph Steiner <hans@at.or.at><br />> To: João Pais <jmmmpais@googlemail.com><br />> Cc: katja <katjavetter@gmail.com>; "pd-list@iem.at" <pd-list@iem.at>; Jonathan Wilkes <jancsika@yahoo.com><br />> Sent: Thursday, November 3, 2011 11:07 AM<br />> Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued?<br />> <br />> <br />> I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try <br />> running "path/to/pd -stderr -d 3" and you'll see that 'pd' <br />> is sending 'pd-gui' massive amounts of Tcl code to parse,
compile, and <br />> execute. In the case of a move, this could be accomplished with one line of Tcl <br />> to tag everything you want to move, then one move command to let Tcl/Tk do the <br />> moving.<br />> <br />> .hc<br />> <br />> On Nov 3, 2011, at 10:31 AM, João Pais wrote:<br />> <br />>> those spikes is what I was predicting with the graphic overloading of <br />> tcl/tk (through data structures, in this case).<br />>> <br />>> you could also try the following: make the "selectable area" <br />> around one corner (or middle) of the button: with a tiny bit more resolution, <br />> but less points in the template. if you want to keep the squares, it's even <br />> better, because it helps you selecting the structs.<br />>> <br />>> Or one other thing: maybe can the tcl/tk code be changed, so that it <br />> doesn't overload that fast? Reduce the redraw rate, or something else? (I <br />> have no
idea about tcl/tk)<br />>> <br />>> Or change the output rate of the struct object? (this might not help much)<br />>> <br />>> <br />>> About the background grid for instant jumps, an implementation of it in run <br />> mode is easy. I could try to give an example, but don't have any time for <br />> now.<br />>> <br />>> <br />>>> ----- Original Message -----<br />>>>> From: katja <katjavetter@gmail.com><br />>>>> To: pd-list@iem.at<br />>>>> Cc:<br />>>>> Sent: Thursday, November 3, 2011 6:10 AM<br />>>>> Subject: Re: [PD] how to capture window-related mouse-events when <br />> toxy is discontinued?<br />>>>> <br />>>>> On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes <br />> <jancsika@yahoo.com><br />>>>> wrote:<br />>>>> <br />>>>>> How does the cpu usage in my demo compare
to your patch where <br />> you use<br />>>>>> a radiobutton?<br />>>>> <br />>>>> Here's a cpu load comparison of objects dragged continuously <br />> (on intel<br />>>>> mac 2GHz):<br />>>>> <br />>>>> polygon in movable_box2.pd: 23 %<br />>>>> polygon in 07.sequencer.pd (help browser): 16%<br />>>>> radiobutton in moving_objects.pd: 12 %<br />>>>> regular Pd slider: 13 %<br />>>>> 2D geo in a gem window: 2.5%<br />>>> <br />>>> I just got intermittent rises up to 50% on a dual core 64-bit amd with<br />>>> all of the above.<br />>>> <br />>>> I imagine that the cpu load for movable_box2.pd is due to the number of<br />>>> points in the polygon. I think you could get a 20x20 draggable square <br />> with 8 coordinates-- that<br />>>> would be equal to the number of points in
a radiobutton so maybe that <br />> would get down<br />>>> to a corresponding cpu load.<br />>>> <br />>>> I'll try some tweaks later to see if that works.<br />>>> <br />>>> -Jonathan<br />>>> <br />>>>> <br />>>>> Your polygon method is plain vanilla Pd and that makes it <br />> attractive<br />>>>> for a widely shared Pd patch. No risk of broken dependencies. But I <br />> am<br />>>>> afraid it is too cpu-intensive, particularly on Windows. Thanks for<br />>>>> sharing the idea though, it is inspiring.<br />>>>> <br />>>>> Katja<br />>>>> <br />>>>><hr /><br />>>>> Pd-list@iem.at mailing list<br />>>>> UNSUBSCRIBE and account-management -><br />>>>> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br
/>>>>> <br />>>> <br />>>><hr /><br />>>> Pd-list@iem.at mailing list<br />>>> UNSUBSCRIBE and account-management -> <br />> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br />>> <br />>> <br />>> -- <br />>> Friedenstr. 58<br />>> 10249 Berlin (Deutschland)<br />>> Tel +49 30 42020091 | Mob +49 162 6843570<br />>> Studio +49 30 69509190<br />>> jmmmpais@googlemail.com | skype: jmmmpjmmmp<br />>> <br />>><hr /><br />>> Pd-list@iem.at mailing list<br />>> UNSUBSCRIBE and account-management -> <br />> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br />> <br />> <br />> <br />> <br />> <br />><hr /><br />> <br />> 'You people have such restrictive dress for women,’ she said, hobbling away <br />> in three
inch heels and panty hose to finish out another pink-collar temp pool <br />> day. - “Hijab Scene #2", by Mohja Kahf<br />><br /><br /><hr /><br />Pd-list@iem.at mailing list<br />UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br /></pre></blockquote></div></body></html>