[OpenJDK 2D-Dev] RFR: 8250658: Performance of ClipFlatOval Renderperf test is very low

Alexey Ushakov avu at openjdk.java.net
Tue May 11 16:08:58 UTC 2021


On Tue, 11 May 2021 14:14:02 GMT, Ajit Ghaisas <aghaisas at openjdk.org> wrote:

>> Implemented indirect rendering (via stencil texture attachment) to stencil texture
>
> src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLClip.h line 52:
> 
>> 50: @property (readonly) id<MTLTexture> stencilTextureRef;
>> 51: @property (readonly) BOOL stencilMaskGenerationInProgress;
>> 52: @property (readwrite ) BOOL stencilMaskGenerationStarted;
> 
> Is 'stencilMaskGenerationStarted' property needed?
> I don't see it being used anywhere to compare.

It is used here src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.m (430)

The main goal of the property is to continue clip generation. Sometimes we're unable to produce all the scanlines at once

-------------

PR: https://git.openjdk.java.net/jdk/pull/3929


More information about the 2d-dev mailing list