<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 8/20/2021 11:56 PM, Phil B via Cuis-dev wrote:
    <blockquote
cite="mid:CAMJMOei5J+mNu7-VAOsXkzfOZnD-QPyHm44Xi7OC=uVShWf4Vw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div dir="ltr">Juan,</div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Fri, Aug 20, 2021 at
            10:34 PM Juan Vuletich via Cuis-dev <<a
              moz-do-not-send="true"
              href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin: 0px 0px 0px
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">Thanks Gerald. I have experienced
            occasional crashes when zooming heavy <br>
            windows, but this surely makes it more likely to happen. I
            can't test it <br>
            right now (I need Windows or Linux), but I thought of a
            possible reason <br>
            for the problem. If many drag-the-scale-handle events are
            processed in <br>
            the same Morphic cycle, and processing each takes too much
            time, next <br>
            cycle will take longer, so it will process even more of
            those events (if <br>
            generated at a constant rate by an insisting user). The
            growth is <br>
            exponential, with no bound. So this is guaranteed to end
            badly!<br>
          </blockquote>
          <div><br>
          </div>
          <div>Yes, this can be an issue with non-VG Morphic too if one
            isn't careful.  I've run into it with everything from
            scrolling to mouse moves to dragging etc.  VG likely just
            makes it a more frequent issue given the overhead of the
            increased drawing time per frame.</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin: 0px 0px 0px
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <br>
            I just pushed an update that limits the processing of
            MouseMoveEvents to <br>
            just one per cycle. The other kinds of events are much less
            likely to <br>
            cause this kind of problems (although not completely
            impossible), and <br>
            are (as usual) processed until the event queue is empty.<br>
          </blockquote>
          <div><br>
          </div>
          <div>Please don't discard events like this.  It will have an
            impact on sensitivity/resolution which is already not
            great.  Can we do some combination of coalescing and/or more
            selectively discarding them instead?</div>
        </div>
      </div>
    </blockquote>
    <br>
    The point is to improve sensitivity to user actions. Slowing down
    the Morphic cycle, reducing fps, to process events that won't give
    feedback to the user until the next cycle is what makes it worse.
    The way to improve is to give the user feedback as quickly as
    possible.<br>
    <br>
    <blockquote
cite="mid:CAMJMOei5J+mNu7-VAOsXkzfOZnD-QPyHm44Xi7OC=uVShWf4Vw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_quote">
          <div><br>
          </div>
          <blockquote class="gmail_quote" style="margin: 0px 0px 0px
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <br>
            Please try again with this updates if you have the chance.
            It may help.<br>
            <br>
            Thanks,<br>
            <br>
            -- <br>
            Juan Vuletich<br>
            <a moz-do-not-send="true"
              href="http://www.cuis-smalltalk.org" rel="noreferrer"
              target="_blank">www.cuis-smalltalk.org</a><br>
            <a moz-do-not-send="true"
              href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev"
              rel="noreferrer" target="_blank">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a><br>
            <a moz-do-not-send="true"
              href="https://github.com/jvuletich" rel="noreferrer"
              target="_blank">https://github.com/jvuletich</a><br>
            <a moz-do-not-send="true"
              href="https://www.linkedin.com/in/juan-vuletich-75611b3"
              rel="noreferrer" target="_blank">https://www.linkedin.com/in/juan-vuletich-75611b3</a><br>
            @JuanVuletich<br>
            <br>
          </blockquote>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Phil </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
  </body>
</html>