RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep
Ajit Ghaisas
aghaisas at openjdk.org
Mon Apr 3 12:27:56 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 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
More information about the client-libs-dev
mailing list