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

Alexey Ushakov avu at openjdk.org
Thu Mar 30 08:45:16 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.

Thanks for the testing. I've run only RenderPerf and only on M1 but it didn't show any regressions (there were some improvements actually) I've removed the dedicated blitCommandQueue because it caused the unpredicted order of rendered frames to appear on the screen. In general, it's recommended to use only one command queue per application. If we still want to use a separate queue, we need to provide some synchronization here https://developer.apple.com/documentation/metal/resource_synchronization/synchronizing_events_within_a_single_device?language=objc .

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13230#issuecomment-1489922312



More information about the client-libs-dev mailing list