RFR: 8312198: [macos] metal pipeline - window rendering stops after display sleep
Jayathirth D V
jdv at openjdk.org
Thu May 22 14:32:55 UTC 2025
On Thu, 22 May 2025 03:04:44 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> Is it possible that it is somehow related to 8304825? could be the layer created "during display sleep" and that might be in "sleep" more that 5 seconds?
This is follow-up fix for JDK-8304825. Basically we have a race condition because of timing issue when we are rendering many frame with animations. On screen wakeup CVDisplayLinkCreateWithActiveCGDisplays is failing because Active display list is still empty and we never create a displayLink and content to MTLLayer are never updated. By adding 5 retries with 1 secons gap after screen wakeup we are making sure that we are able to create displayLink for all active displays.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25342#issuecomment-2901453421
More information about the client-libs-dev
mailing list