<!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">
Hi Marcel,<br>
<br>
The check for 'MacOS' is an acceptable solution for Cuis.<br>
<br>
But I just did a quick test with Squeak 5.3, running on the new VM.
If I comment the primitive 126 call in #primitiveDeferUpdates: , to
simulate the effect of the primitive failing (and resize the squeak
window to force recreation of Display, Canvas, etc), then the
"invisible dragged window" problem is fixed.<br>
<br>
As I said before, this is also a good solution for Cuis. So, my
suggestion, is to simply make primitive 126 fail on MacOs.<br>
<br>
This wouldn't affect older images checking for the platform (as you
say, for a performance improvement), but would fix older "untweaked"
images, solving any concern about strict back compatibility for the
VM.<br>
<br>
Thanks,<br>
<br>
On 4/28/2022 4:28 AM, Marcel Taeumel wrote:
<blockquote
cite="mid:Mailbird-399dd1a7-abad-4be5-b4af-78cd0cd37280@hpi.de"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<div> Hi Juan --
<div><br>
</div>
<div>> <span>If primitive 126 is made to fail, Cuis will be
happy again.</span></div>
<div><span>> Otherwise we'd need another way for the image to
know.</span></div>
<div><span><br>
</span></div>
<div><span>Squeak's current approach is to just check for being
on</span></div>
<div><span>the macOS platform, which also works for older VMs</span></div>
<div><span>(because the image-side composition buffer fixes some</span></div>
<div><span>of the performance regressions but not that 60 FPS
cap).</span></div>
<div><span><br>
</span></div>
<div><span>Smalltalk platformName = 'Mac OS'.</span></div>
<div><span><br>
</span></div>
<div><span><span>Primitive 126 could be improved if we would
attach</span></span></div>
<div><span><span>platform-specific code to it. Might be a "true"
for most</span></span></div>
<div><span><span>backends. I will open issues in the OSVM repo
for this.</span></span></div>
<div><span><br>
</span></div>
<div><span>Best,</span></div>
<div><span>Marcel</span></div>
</div>
</blockquote>
<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>
<a class="moz-txt-link-freetext" href="https://independent.academia.edu/JuanVuletich">https://independent.academia.edu/JuanVuletich</a>
<a class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Juan-Vuletich">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a class="moz-txt-link-freetext" href="https://patents.justia.com/inventor/juan-manuel-vuletich">https://patents.justia.com/inventor/juan-manuel-vuletich</a>
<a class="moz-txt-link-freetext" href="https://twitter.com/JuanVuletich">https://twitter.com/JuanVuletich</a></pre>
</body>
</html>