Internally, objects like pix_image and pix_film set flags for whether an image is new or not.&nbsp; This tells other objects to update.&nbsp; Perhaps a generic object (pix_info ?) can output when that flag is set.<br><br>pix_share is a little different than image loading as it just dumps a new image into the gemlist each frame.&nbsp; It is not designed to do sync between instances of pd, but rather to be an asynchronous way to distribute processing.&nbsp; Making it sync would remove the performance gains.<br>
<br><br><div class="gmail_quote">On Thu, Oct 30, 2008 at 9:32 AM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@eds.org">hans@eds.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I agree. &nbsp;I think for any indeterminate operation, like anything in a<br>
separate thread, there should be a bang when that operation is<br>
complete. &nbsp;That way you can guarantee that things are ready when you<br>
run a process. &nbsp;If you want to make sure that things will be there on<br>
time, then these threaded/indeterminate operations should run well in<br>
advance. &nbsp;Using guesswork and delays is not a real solution...<br>
<br>
.hc<br>
<div><div></div><div class="Wj3C7c"><br>
On Oct 30, 2008, at 4:25 AM, cyrille henry wrote:<br>
<br>
&gt; helo,<br>
&gt;<br>
&gt; i&#39;m also having this kind of problem.<br>
&gt; specially when loading a picture in pix_image.<br>
&gt; i think the best would be the have a bang when things are ready...<br>
&gt;<br>
&gt; C<br>
&gt;<br>
&gt;<br>
&gt; B. Bogart a écrit :<br>
&gt;&gt; Hey all,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m having more and more problems with sync in PD. By sync I mean<br>
&gt;&gt; that<br>
&gt;&gt; parts of my patches have processing delays that mess up timing. In<br>
&gt;&gt; general I&#39;ve been using buffers and delays to keep things working.<br>
&gt;&gt;<br>
&gt;&gt; This approach is not very scalable.<br>
&gt;&gt;<br>
&gt;&gt; I find myself using the &quot;timer&quot; object all the time to see if<br>
&gt;&gt; there is a<br>
&gt;&gt; processing delay I have to worry about. That is in cases where<br>
&gt;&gt; there is<br>
&gt;&gt; a bang saying an operation is done.<br>
&gt;&gt;<br>
&gt;&gt; Two examples I&#39;m working on now (in Gem):<br>
&gt;&gt;<br>
&gt;&gt; First there is a delay between sending a message and the<br>
&gt;&gt; pix_buffer to<br>
&gt;&gt; store, and then again for pix_buffer_read to read the pixels. The<br>
&gt;&gt; delay<br>
&gt;&gt; is long enough that trigger does not work, there needs to be a<br>
&gt;&gt; delay to<br>
&gt;&gt; make sure the image in the buffer is the right one. (sometimes as<br>
&gt;&gt; much<br>
&gt;&gt; as 200ms)<br>
&gt;&gt;<br>
&gt;&gt; A second example is that I&#39;m using pix_share and and second PD<br>
&gt;&gt; instance<br>
&gt;&gt; to offload some CPU usage. Making sure the image sent to that PD<br>
&gt;&gt; instance and the image received later in the chain is difficult.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not writing for specific advice, hence the generalities, but<br>
&gt;&gt; wanted<br>
&gt;&gt; to start a discussion on the issue.<br>
&gt;&gt;<br>
&gt;&gt; What is the long-term solution for PD to solve these issues?<br>
&gt;&gt; Should all<br>
&gt;&gt; objects that introduce a delay send a bang when they are complete?<br>
&gt;&gt; (for<br>
&gt;&gt; example pix_buffer? Of course an additional delay occurs when when<br>
&gt;&gt; the<br>
&gt;&gt; pix_buffer is written to memory and when it gets to the gfx card for<br>
&gt;&gt; display.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m banging my head over these issues a lot lately and wonder if<br>
&gt;&gt; there<br>
&gt;&gt; is a better approach.<br>
&gt;&gt;<br>
&gt;&gt; Back to attempting kludging a solution.<br>
&gt;&gt; .b.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; GEM-dev mailing list<br>
&gt;&gt; <a href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a><br>
&gt;&gt; <a href="http://lists.puredata.info/listinfo/gem-dev" target="_blank">http://lists.puredata.info/listinfo/gem-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; GEM-dev mailing list<br>
&gt; <a href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a><br>
&gt; <a href="http://lists.puredata.info/listinfo/gem-dev" target="_blank">http://lists.puredata.info/listinfo/gem-dev</a><br>
<br>
<br>
<br>
</div></div>------------------------------------------------------------------------<br>
----<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ¡El pueblo unido jamás será vencido!<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
_______________________________________________<br>
GEM-dev mailing list<br>
<a href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/gem-dev" target="_blank">http://lists.puredata.info/listinfo/gem-dev</a><br>
</div></div></blockquote></div><br>