RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

Ajit Ghaisas aghaisas at openjdk.org
Thu Mar 30 06:56:14 UTC 2023


On Wed, 29 Mar 2023 14:39:12 GMT, Alexey Ushakov <avu at openjdk.org> 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



More information about the client-libs-dev mailing list