<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 &amp; 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 &lt;jancsika@yahoo.com&gt; 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 />&gt; From: Hans-Christoph Steiner &lt;hans@at.or.at&gt;<br />&gt; To: João Pais &lt;jmmmpais@googlemail.com&gt;<br />&gt; Cc: katja &lt;katjavetter@gmail.com&gt;; "pd-list@iem.at" &lt;pd-list@iem.at&gt;; Jonathan Wilkes &lt;jancsika@yahoo.com&gt;<br />&gt; Sent: Thursday, November 3, 2011 11:07 AM<br />&gt; Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued?<br />&gt; <br />&gt; <br />&gt; I doubt that Tcl/Tk's drawing code is being overloaded.  Instead, try <br />&gt; running "path/to/pd -stderr -d 3" and you'll see that 'pd' <br />&gt; is sending 'pd-gui' massive amounts of Tcl code to parse,
compile, and <br />&gt; execute.  In the case of a move, this could be accomplished with one line of Tcl <br />&gt; to tag everything you want to move, then one move command to let Tcl/Tk do the <br />&gt; moving.<br />&gt; <br />&gt; .hc<br />&gt; <br />&gt; On Nov 3, 2011, at 10:31 AM, João Pais wrote:<br />&gt; <br />&gt;&gt;  those spikes is what I was predicting with the graphic overloading of <br />&gt; tcl/tk (through data structures, in this case).<br />&gt;&gt; <br />&gt;&gt;  you could also try the following: make the "selectable area" <br />&gt; around one corner (or middle) of the button: with a tiny bit more resolution, <br />&gt; but less points in the template. if you want to keep the squares, it's even <br />&gt; better, because it helps you selecting the structs.<br />&gt;&gt; <br />&gt;&gt;  Or one other thing: maybe can the tcl/tk code be changed, so that it <br />&gt; doesn't overload that fast? Reduce the redraw rate, or something else? (I <br />&gt; have no
idea about tcl/tk)<br />&gt;&gt; <br />&gt;&gt;  Or change the output rate of the struct object? (this might not help much)<br />&gt;&gt; <br />&gt;&gt; <br />&gt;&gt;  About the background grid for instant jumps, an implementation of it in run <br />&gt; mode is easy. I could try to give an example, but don't have any time for <br />&gt; now.<br />&gt;&gt; <br />&gt;&gt; <br />&gt;&gt;&gt;  ----- Original Message -----<br />&gt;&gt;&gt;&gt;  From: katja &lt;katjavetter@gmail.com&gt;<br />&gt;&gt;&gt;&gt;  To: pd-list@iem.at<br />&gt;&gt;&gt;&gt;  Cc:<br />&gt;&gt;&gt;&gt;  Sent: Thursday, November 3, 2011 6:10 AM<br />&gt;&gt;&gt;&gt;  Subject: Re: [PD] how to capture window-related mouse-events when <br />&gt; toxy is discontinued?<br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;  On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes <br />&gt; &lt;jancsika@yahoo.com&gt;<br />&gt;&gt;&gt;&gt;  wrote:<br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;&gt;  How does the cpu usage in my demo compare
to your patch where <br />&gt; you use<br />&gt;&gt;&gt;&gt;&gt;  a radiobutton?<br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;  Here's a cpu load comparison of objects dragged continuously <br />&gt; (on intel<br />&gt;&gt;&gt;&gt;  mac 2GHz):<br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;  polygon in movable_box2.pd: 23 %<br />&gt;&gt;&gt;&gt;  polygon in 07.sequencer.pd (help browser): 16%<br />&gt;&gt;&gt;&gt;  radiobutton in moving_objects.pd: 12 %<br />&gt;&gt;&gt;&gt;  regular Pd slider: 13 %<br />&gt;&gt;&gt;&gt;  2D geo in a gem window: 2.5%<br />&gt;&gt;&gt; <br />&gt;&gt;&gt;  I just got intermittent rises up to 50% on a dual core 64-bit amd with<br />&gt;&gt;&gt;  all of the above.<br />&gt;&gt;&gt; <br />&gt;&gt;&gt;  I imagine that the cpu load for movable_box2.pd is due to the number of<br />&gt;&gt;&gt;  points in the polygon.  I think you could get a 20x20 draggable square <br />&gt; with 8 coordinates-- that<br />&gt;&gt;&gt;  would be equal to the number of points in
a radiobutton so maybe that <br />&gt; would get down<br />&gt;&gt;&gt;  to a corresponding cpu load.<br />&gt;&gt;&gt; <br />&gt;&gt;&gt;  I'll try some tweaks later to see if that works.<br />&gt;&gt;&gt; <br />&gt;&gt;&gt;  -Jonathan<br />&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;  Your polygon method is plain vanilla Pd and that makes it <br />&gt; attractive<br />&gt;&gt;&gt;&gt;  for a widely shared Pd patch. No risk of broken dependencies. But I <br />&gt; am<br />&gt;&gt;&gt;&gt;  afraid it is too cpu-intensive, particularly on Windows. Thanks for<br />&gt;&gt;&gt;&gt;  sharing the idea though, it is inspiring.<br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;  Katja<br />&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt;&gt;<hr /><br />&gt;&gt;&gt;&gt;  Pd-list@iem.at mailing list<br />&gt;&gt;&gt;&gt;  UNSUBSCRIBE and account-management -&gt;<br />&gt;&gt;&gt;&gt;  <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br
/>&gt;&gt;&gt;&gt; <br />&gt;&gt;&gt; <br />&gt;&gt;&gt;<hr /><br />&gt;&gt;&gt;  Pd-list@iem.at mailing list<br />&gt;&gt;&gt;  UNSUBSCRIBE and account-management -&gt; <br />&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br />&gt;&gt; <br />&gt;&gt; <br />&gt;&gt;  -- <br />&gt;&gt;  Friedenstr. 58<br />&gt;&gt;  10249 Berlin (Deutschland)<br />&gt;&gt;  Tel +49 30 42020091 | Mob +49 162 6843570<br />&gt;&gt;  Studio +49 30 69509190<br />&gt;&gt;  jmmmpais@googlemail.com | skype: jmmmpjmmmp<br />&gt;&gt; <br />&gt;&gt;<hr /><br />&gt;&gt;  Pd-list@iem.at mailing list<br />&gt;&gt;  UNSUBSCRIBE and account-management -&gt; <br />&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt;<hr /><br />&gt; <br />&gt; 'You people have such restrictive dress for women,’ she said, hobbling away <br />&gt; in three
inch heels and panty hose to finish out another pink-collar temp pool <br />&gt; day.  - “Hijab Scene #2", by Mohja Kahf<br />&gt;<br /><br /><hr /><br />Pd-list@iem.at mailing list<br />UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br /></pre></blockquote></div></body></html>