JDK-8268631 : Release Note: JEP 382: New macOS Rendering Pipeline
  • Type: Sub-task
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 17
  • Priority: P3
  • Status: Closed
  • Resolution: Delivered
  • OS: os_x
  • CPU: generic
  • Submitted: 2021-06-11
  • Updated: 2021-12-23
  • Resolved: 2021-12-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17Resolved
Description
The Java 2D API used by the Swing APIs for rendering, can now use the new Apple Metal accelerated rendering API for macOS.

This is currently disabled by default, so rendering still uses OpenGL APIs, which are deprecated by Apple but still available and supported.

To enable Metal, an application should specify its use by setting the system property:

`-Dsun.java2d.metal=true`

Use of Metal or OpenGL is transparent to applications since this is a difference of internal implementation and has no effect on Java APIs.
The metal pipeline requires macOS 10.14.x or later. Attempts to set it on earlier releases will be ignored.

 For further details, see [JEP 382](https://openjdk.java.net/jeps/382).