[Vm-dev] Informing the VM that the display bits have changed via primitiveBeDisplay

Bert Freudenberg bert at freudenbergs.de
Tue May 2 17:37:26 UTC 2017


On Tue, May 2, 2017 at 7:27 PM, tim Rowledge <tim at rowledge.org> wrote:

> This is mostly a problem when the OS window drawing code is in a separate
> thread; if the VM is doing a GC and the window is moved on-screen the OS
> will send some event about the move, the thread will try to read the
> partly-processed Display values, they will be … odd… and strange things
> will happen.
>

Well it should "just" be a visual glitch. Unless the bitmap is pinned, the
GC could move it during the copy-to-screen, even if you grab the pointer
right before.

So how about simply fixing it up after the copy-to-screen? Save
display/bitmap oop before, compare afterwards, and if changed, just draw
again.

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20170502/90b5cf99/attachment-0001.html>


More information about the Vm-dev mailing list