<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">Actually, this should do the job in both Morphic and MVC:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">Project current restore</font><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">​- Bert -​</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 January 2018 at 19:48, Eliot Miranda <span dir="ltr"><<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Bert,<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 16, 2018 at 2:05 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><div style="color:rgb(34,34,34);font-family:arial,sans-serif"><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">World displayWorldSafely</div></div></div></div></blockquote><div><br></div><div>Thanks.  It would be nice if there was a changed: call a model could make, e.g. self changed: #forceScreenUpdate, that could insulate models from being run under Morphic or ST80 managers. Someday perhaps :-)</div><span class="gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><div style="color:rgb(34,34,34);font-family:arial,sans-serif"><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><span class="gmail-m_-3209101160203413072HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-m_-3209101160203413072HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-m_-3209101160203413072HOEnZb"><font color="#888888"><div style="color:rgb(34,34,34);font-family:arial,sans-serif"><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">​- Bert -​</div></div></font></span></div><div><div class="gmail-m_-3209101160203413072h5"><div class="gmail_extra"><br><div class="gmail_quote">On 16 January 2018 at 11:01, Marcel Taeumel <span dir="ltr"><<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-3209101160203413072m_-174234046141569248gmail-m_1597677074694891961__MailbirdStyleContent" style="font-size:12pt;font-family:calibri;color:rgb(0,0,0)">
                                        Hmm... maybe "Project current world displayWorldSafely"? Or for a single morph "Display getCanvas fullDraw: self"? Well, the latter does ignore Z-Order and occlusion and stuff.<div><br></div><div>Best,</div><div>Marcel</div><div class="gmail-m_-3209101160203413072m_-174234046141569248gmail-m_1597677074694891961mb_sig"></div><blockquote class="gmail-m_-3209101160203413072m_-174234046141569248gmail-m_1597677074694891961history_container" type="cite" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px">
                        <p style="color:rgb(170,170,170);margin-top:10px">Am 15.01.2018 22:37:52 schrieb tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>>:</p><span class="gmail-m_-3209101160203413072m_-174234046141569248gmail-"><br>> On 15-01-2018, at 1:17 PM, Eliot Miranda <u></u> wrote:<br>> <br>> Hi Tim,<br>> <br></span><span class="gmail-m_-3209101160203413072m_-174234046141569248gmail-">> On Mon, Jan 15, 2018 at 10:41 AM, tim Rowledge <u></u> wrote:<br>> For something that cpu intensive how about sticking a deliberate yield in the cycle somewhere so the rest of the system can do some work? That would help provide some chance of catching an interrupt key, something I faintly recall being a bit of a pain under the sim.<br>> <br>> Perhaps a yield in the sim code for the process check?<br>> <br>> The right place is in ioForceDisplayUpdate, which in the simulator is a no-op, but is called in all the right places (after deferDisplayUpdates is reset for example).<br><br>True, but I was wondering about having a yield to allow the wider system a play with the cpu. That may or may not be desirable, depending on what’s happening. Actually I guess that might be better done with a high-priority timer to interrupt and faff around.<br><br>>  <br>> <br>> The classic simple approach is #doOneCycle, assuming morphic is in use. If you want to get all low-level and brutal you could use DisplayScreen>>#forceToScreen I guess.<br>> <br>> So what I don't see is why doOneCycle is the right call.  That advances the animation clock,<br><br>It’s just the more-or-less habitual response and it let’s other morphs update; again, maybe desirable if you were to have a bunch of monitoring morphs that displayed cycles, interrupts, gc data etc.<br><br>> whereas what I want to do is simply ensure that a form submorph in a window appears on screen.  I'm happy to use doOneCycle if that's the right thing but reading the code it seems to have far more effects than I want.<br><br>Sounds like whacking DisplayScreen>>#forceToScreen would be where you want to start for now<br><br>tim<br>--<br>tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>Strange OpCodes: PNG: Pass Noxious Gas<br><br><br><br><u></u><u></u>
                        </span></blockquote>
                                        </div></div><br><br>
<br></blockquote></div><br></div></div></div></div>
<br><br>
<br></blockquote></span></div><span class="gmail-HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-3209101160203413072gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</font></span></div></div>
<br><br>
<br></blockquote></div><br></div></div>