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 suggest we fix this bug on by either of the two options below- - Option 1 : Recreating the CVDisplaylink on screen sleep/wake events - Option 2 : As noted by you as a JBS comment - `Actually, the simple hack to resolve this particular issue is to replace this call with CVDisplayLinkCreateWithCGDisplay(CGMainDisplayID(), &displayLink)` I have implemented and tested Option 1. I have not tried Option 2 yet. The code refactoring that you have done can be done as a separate JBS issue if needed in future. What do you think? ------------- PR Comment: https://git.openjdk.org/jdk/pull/13230#issuecomment-1494229820
