JDK-8315590 : drawIndexedQuads: pass only required size of vertex buffer to shader
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-09-04
  • Updated: 2024-07-06
  • Resolved: 2023-09-04
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
In MetalShader.m :: drawIndexedQuads(), we pass a buffer of vertices that are used to render the Triangle primitives.
Currently we pass the whole vertex buffer (~4 KB) every time even if we intend to render a single quad which would need 6 vertices.
This is a minor change.
Comments
Changeset: c1adf8f7 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2023-09-04 11:20:00 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/c1adf8f7106663642f4900c0f4efcb117a4e1f05
04-09-2023