JDK-8349692 : Wait for completion of a single CommandBuffer when all buffers are in use
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2025-02-10
  • Updated: 2025-02-25
  • Resolved: 2025-02-11
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
Related Reports
Causes :  
Description
We create three buffers to store data for use with MTLCommandBuffer.

During performance testing, we observed a scenario where all three command buffers could be submitted for execution but remain incomplete. In such cases, we end up waiting for all three command buffers to finish, leading to a longer wait time and causing the CPU to stall while encoding commands.

To optimize this, we need to modify the approach so that we wait for only one MTLCommandBuffer to complete execution, which would release a buffer.
Comments
Changeset: bf79df7c Branch: metal Author: Ambarish Rapte <arapte@openjdk.org> Date: 2025-02-10 11:55:18 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/bf79df7cd397e8af86703fdb0cb9899c80cd850b
11-02-2025