<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2017-02-14 16:12 GMT+01:00 Ben Coman <span dir="ltr"><<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Even though these get cleared out, its still extra work for the GC.  Presumably most of the time the display size is identical to the last one, so I wonder if the existing screen size might be passed to the primitive to test and avoid creating a new new point if its the same.  Off the top of my head, something like this (untested)...  <br><br><div>  MorphicUIManager >> checkForNewDisplaySize</div><div><span class="gmail-m_6867322694458150824gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>Display hasScreenSizeChanged ifFalse: [^ Display].<br></div><div><span class="gmail-m_6867322694458150824gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>DisplayScreen startUp.</div><div><span class="gmail-m_6867322694458150824gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>World restoreMorphicDisplay.</div></div></blockquote></div><br>I hope with SDL we will be able remove such loops. There is OSWindowResizeEvent which can be handled immediately when it's happened</div></div>