JDK-8310878 : Cache MTLRenderPipelineState for Solid_Color fragment function
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-06-26
  • Updated: 2024-07-06
  • Resolved: 2023-06-28
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.
Other
internalFixed
Description
Solid_Color fragment function is used for clearing rectangle areas in rtt.
clearRect occurs several times during rendering.

The MTLRenderPipelineState created for Solid_Color fragment function is currently not cached, and gets recreated for each clearRect call.
It should be cached to reduce the overhead of recreating it several times.
Comments
Changeset: 3bcfd5ed Author: Ambarish Rapte <arapte@openjdk.org> Date: 2023-06-26 14:19:27 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/3bcfd5edf59f57e6d8fbd2fc385346a0bca20d47
28-06-2023