JDK-8339365 : Increase RingBuffer size and limit transient buffer size per MTLCommandBuffer
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2024-09-02
  • Updated: 2024-09-02
  • Resolved: 2024-09-02
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
The number of command buffers and number of commands encoded into the command buffer play a crucial role in balancing work load between CPU and GPU.
A large CB would starve both CPU and GPU.
We need to control amount of work load passed to GPU.
This can be controlled by limiting the size of transient buffers per CB and increasing the size of ring buffer.
Comments
FPS increases observed with the change: RotatedRectangleRH: 13.00 -> 20.00 MultiShape2DInterleaved: 14.20 -> 19.50 WhiteText: 13.50 -> 15.30 ColorText: 12.90 -> 15.30 LargeText: 11.40 -> 13.10 LargeColorText: 11.40 -> 13.10 Changeset: 18e237f6 Branch: metal Author: Ambarish Rapte <arapte@openjdk.org> Date: 2024-09-02 12:44:02 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/18e237f6c1fc87af23039cccfbf8144dd931fc36
02-09-2024