[OpenJDK 2D-Dev] Heads up : JDK 17 b19 through b22 will use Metal instead of OpenGL for Java 2D rendering on macOS.
Ajit Ghaisas
ajit.ghaisas at oracle.com
Mon May 17 07:32:17 UTC 2021
Hi,
I have filed - https://bugs.openjdk.java.net/browse/JDK-8267226 <https://bugs.openjdk.java.net/browse/JDK-8267226> for the reported observation.
We will need a test program to see the issue.
Regards,
Ajit
> On 07-May-2021, at 3:34 AM, Philip Race <philip.race at oracle.com> wrote:
>
> > I’ve only tried a couple of apps and only this test program has shown the problem.
>
> Did you try to attach something ? the lists strip attachments.
> Sent it directly to me and I'll see if I can add it to a bug report.
>
> -phil.
>
> On 5/6/21 2:50 PM, Alan Snyder wrote:
>>
>>> On May 6, 2021, at 1:45 PM, Philip Race <philip.race at oracle.com> wrote:
>>>
>>> Alan,
>>>
>>> I am not sure this is a known issue. We'll need a lot more details.
>> I figured you would. :-)
>>
>>
>>> What is your h+w and OS update ?
>> iMac 27 inch 2020 Radeon Pro 5500 XT 8 GB
>> 11.3.1
>>
>>
>>> Is this all windows in an app or just the first one ?
>> Definitely not just the first one, but not all of them, either.
>>
>>
>>> Does it matter what the window content is ?
>> It might. The app is a test program that can create any of 30 different kinds of windows on demand.
>>
>> So far, I’ve seen the problem in 11 kinds of windows but not in the others. No obvious pattern in the content.
>>
>> The problem is most likely to happen the first time a given window is shown, but it can also happen on later instances of the same kind of window.
>> I just tried a new kind of window and it happened the first 3 times, but not the 4th, then about 50% of the time.
>> I tried creating a different window about 25 times, and it happened on #1, #4, and #25.
>>
>>> Any app or some specific app ?
>> I’ve only tried a couple of apps and only this test program has shown the problem.
>>
>>
>>
>>> -phil.
>>>
>>>
>>> On 4/29/21 7:18 PM, Alan Snyder wrote:
>>>> I am seeing some unusual behavior (in b20) that I do not see using OpenGL (or using JDK 16).
>>>>
>>>> Sometimes when I open a new window, the window appears blank (except for the title bar) for about two seconds before the content appears.
>>>>
>>>> This behavior is not consistent. Opening another instance of the same window might be fast or slow. It happens with a variety of window classes.
>>>>
>>>> In JDK16 and using OpenGL, the content always appears immediately.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> On Apr 23, 2021, at 1:13 PM, Philip Race <philip.race at oracle.com> wrote:
>>>>>
>>>>> FYI to the wider community that may not subscribe to the client mailing lists, nor appreciate too much cross-posting.
>>>>>
>>>>> -phil.
>>>>>
>>>>>
>>>>> -------- Forwarded Message --------
>>>>> Subject: Heads up : JDK 17 b19 through b22 will use Metal instead of OpenGL for Java 2D rendering on macOS.
>>>>> Date: Fri, 23 Apr 2021 13:10:46 -0700
>>>>> From: Philip Race <philip.race at oracle.com>
>>>>> To: 2d-dev at openjdk.java.net <2d-dev at openjdk.java.net>
>>>>> CC: lanai-dev at openjdk.java.net, swing-dev at openjdk.java.net <swing-dev at openjdk.java.net>, awt-dev at openjdk.java.net <awt-dev at openjdk.java.net>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Heads up to anyone who is testing JDK 17 for running apps on macOS.
>>>>> Starting with build 19 [1], JDK 17 for macOS is *temporarily* switched from using OpenGL
>>>>> to using Apple's Metal API for Java 2D rendering. This should be invisible to applications.
>>>>> We expect to revert this temporary switch in JDK 17 build 23,meaning b22 will be the last build with Metal as default.
>>>>>
>>>>> See JEP 382 [2] for more information about how Metal is used by JDK.
>>>>>
>>>>> If you are running any kind of 2D / Swing/ AWT UI application on macOS, and see any rendering related problems
>>>>> starting with JDK 17 b19, please do report them to us at either the usual bug submission channel [3],
>>>>> or on the 2d-dev at openjdk.java.net OpenJDK mailing list [4]
>>>>> Please be ready to provide us with a test case and screen shots.
>>>>>
>>>>> You may also set "-Dsun.java2d.opengl=true" to re-enable OpenGL - which implicitly disables Metal -
>>>>> to confirm that any problem you see is a Metal related rendering glitch.
>>>>>
>>>>> I will also forward this email to jdk-dev at openjdk.java.net
>>>>>
>>>>> -Phil.
>>>>>
>>>>> [1] https://jdk.java.net/17/
>>>>> [2] https://openjdk.java.net/jeps/382 <https://openjdk.java.net/jeps/382>
>>>>> [3] https://bugreport.java.com/bugreport/
>>>>> [4] https://mail.openjdk.java.net/mailman/listinfo/2d-dev
>>>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20210517/6138f19d/attachment-0001.htm>
More information about the 2d-dev
mailing list