git: openjdk/jfx-sandbox: direct3d12: 8356861: Fix performance of RenderPerfTest Blend examples
duke
duke at openjdk.org
Mon Jul 14 15:03:35 UTC 2025
Changeset: fe27eb7a
Branch: direct3d12
Author: Lukasz Kostyra <lukasz.kostyra at oracle.com>
Date: 2025-07-14 16:02:31 +0000
URL: https://git.openjdk.org/jfx-sandbox/commit/fe27eb7a3099a485e17673af4b2efb25c6e7cee0
8356861: Fix performance of RenderPerfTest Blend examples
Prism's PrRenderer class tries to recognize whether current rendering
backend supports ShaderModel.SM3 Shaders and initializes hardware
filters and shaders if that is the case.
Because D3D12 introduced a new ShaderModel - SM6 - this was not taken
into account and PrRenderer ran all filter effects via the software/SSE
pipeline. This in turn caused frequent readPixels() calls to D3D12
renderer, which allocated a lot of Textures and RTTs, and flushed the
Command Queue every time a blended object was rendered.
Fixing this part of PrRenderer brings D3D12's performance to levels of
other tests which utilize textures.
! modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/prism/PrRenderer.java
More information about the openjfx-changes
mailing list