On Thu, 22 May 2025 03:04:44 GMT, Sergey Bylokhov <s...@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

Reply via email to