On Wed, 29 Mar 2023 14:39:12 GMT, Alexey Ushakov <[email protected]> wrote:
> Use one display link thread per MTLContext. Adjust the refresh rate with the > current display. I tested the test program of this bug and SwingSet2 - with and without external monitor attached. - This patch fixes the reported issue. Also, I did not see any regression in SwingSet2 while moving the test window between external monitors. All regression tests also ran successfully with this patch. - This patch has a negative impact on rendering performance. SwingMark tests show very poor numbers on x64 based macs. There is a performance decrease on M1 macs as well. I think, this has to do with removal of a dedicated `blitCommandQueue`. We need to address the performance degradation that this patch causes or look for a simpler solution. ------------- PR Comment: https://git.openjdk.org/jdk/pull/13230#issuecomment-1489788284
