JDK-8220154 Improve java2d rendering performance on macOS by using Metal framework

Alexey Ushakov alexey.ushakov at jetbrains.com
Tue Mar 5 20:04:34 UTC 2019


Hi Sergey,

> I know that one of the goal of this work is to improve the performance of 2d pipeline, did you try to drop the usage of the RenderQueue?

I suppose we can replace RenderingQueue with Metal command queues. It hasn’t been done yet but we definetely would like to try. 

> Also did you try to compare stuff currently implemented in metal to the equivalent stuff in OGL?

Yes, I’ve put our micro benchmarks (MetalPerfTest) to the webrev and we have a VM property that switches the rendering pipelines. Current implementation is ~2x slower than OGL one but it was not so carefully optimized. Also, I suppose that dropping RenderingQueue may help here too.

Best Regards,
Alexey

> On 5 Mar 2019, at 21:34, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
> 
> Hi, Alexey.
> 
> You are welcome!
> 
> I know that one of the goal of this work is to improve the performance of 2d pipeline, did you try to drop the usage of the RenderQueue? I guess metal could be used from the different threads.
> Also did you try to compare stuff currently implemented in metal to the equivalent stuff in OGL?
> 
> 
> -- 
> Best regards, Sergey.



More information about the macosx-port-dev mailing list