JDK-8312409 : Cache MTLSamplerState objects
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-07-19
  • Updated: 2024-07-06
  • Resolved: 2023-08-21
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
MTLSamplerState is a non transient object and it is advised to be reused.
Currently we create a new sampler state each time when setting a texture on fragment function.
This should be changed to cache MTLSamplerState object.
Comments
Changeset: a9025653 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2023-08-21 18:18:30 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/a90256533027e900ab176761227b755969915c17
21-08-2023

Gains FPS in image rendering render perf samples: Image (18000) : 14.605 to 18.764, ES2 is 18.482 ImageRH (18000) : 14.452 to 18.827, ES2 is 20.9
21-08-2023