Fwd: Heads up : JDK 17 b19 through b22 will use Metal instead of OpenGL for Java 2D rendering on macOS.
philip.race at oracle.com
Fri Apr 23 20:13:49 UTC 2021
FYI to the wider community that may not subscribe to the client mailing
lists, nor appreciate too much cross-posting.
-------- 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 , 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  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 ,
or on the 2d-dev at openjdk.java.net OpenJDK mailing list 
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
 https://openjdk.java.net/jeps/382 <https://openjdk.java.net/jeps/382>
More information about the jdk-dev