<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>> The complexity of the scalars isn't much an issue, more the quantity of elements is what brings tcl/tk down. I think the problem is there, and not really with the Pd core.</div>

<div> </div>

<div>Tcl/Tk's canvas implementation is just horrible. Whenever you change something in the canvas, it will redraw the whole canvas instead of figuring out what *needs* to be redrawn. Compare this with something like Qt's https://doc.qt.io/qt-5/qgraphicsscene.html which can easily handle thousands of objects by using https://de.wikipedia.org/wiki/Binary_Space_Partitioning. Zooming is also trivial.</div>

<div> </div>

<div>I've ranted about Tcl/Tk a couple of times, e.g.: https://lists.puredata.info/pipermail/pd-dev/2019-08/022120.html</div>

<div> </div>

<div>Christof</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Samstag, 04. Januar 2020 um 18:23 Uhr<br/>
<b>Von:</b> "João Pais" <jmmmpais@gmail.com><br/>
<b>An:</b> Kein Empfänger<br/>
<b>Cc:</b> pd-dev <pd-dev@lists.iem.at><br/>
<b>Betreff:</b> Re: [PD-dev] Fwd: capabilities of data structures with externals</div>

<div name="quoted-content"> 
<blockquote>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<div class="gmail_quote">
<div>(I have here a patch with more than 33548 scalars, and that window does take lots of time to open.)</div>
</div>
</div>
</blockquote>

<div> </div>

<div>
<div>Yeah.. my patch does have some issues locking up PD at this time.. the datastuct is quite complex and if I have the drawing window open when I create the ds then pd hangs for quite a while.. though once I do the initial draw opening and closing the window is quick... I do wish I could have more capabilities for manipulating the visualization without actually changing any data (zoom) which is something that would be pretty trivial with GEM.</div>
</div>
</div>
</div>
</blockquote>

<p>The complexity of the scalars isn't much an issue, more the quantity of elements is what brings tcl/tk down. I think the problem is there, and not really with the Pd core.</p>

<p>Zoom is also easy with donecanvasdialog or coords messages, although the speed doesn't change.</p>

<p>It also makes it faster and less prone to bugs to close the canvas while the scalars are being redone, then open it. Vis messages automatize that with no issues.</p>

<p> </p>

<p>Joao</p>
_______________________________________________ Pd-dev mailing list Pd-dev@lists.iem.at <a href="https://lists.puredata.info/listinfo/pd-dev" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a></div>
</div>
</div>
</div></div></body></html>