<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Not sure about this particular case but in general the change that we have in our fork allows to have a one CVD thread per display (not per MTLLayer as we have in OpenJDK mainstream). But even this optimization is not enough for my opinion. We are currently working on the change that performs updates without any display link thread (similar to what we have in OGL). The display link approach introduced in the Metal pipeline was kind of a workaround for the missing content artifacts due some flaws in synchronization. I think that after fixing all the synchronization issues we’ll be able to get rid of display link threads completely.<div><br></div><div>Best Regards,</div><div>Alexey<br><div><br><blockquote type="cite"><div>On Oct 14, 2023, at 5:11 PM, Alan Snyder <javalists@cbfiddle.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=us-ascii"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><blockquote type="cite"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><blockquote type="cite"><div><br>On Oct 10, 2023, at 3:32 AM, Alexey Ushakov <alexey.ushakov@jetbrains.com> wrote:</div><br class="Apple-interchange-newline"><div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">We actually changed this logic in JetBrains Runtime and invoke the CVD api only from one thread but still I see multiple display link threads on M2 machines in some rare cases. So it maybe OS related issue.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div></blockquote></div><br></div></blockquote></div><br><div>Did the change to use a single thread make any difference?</div><div><br></div></div></div></blockquote></div><br></div></body></html>