[OpenJDK 2D-Dev] Making the OpenGL-Queue-Flusher work concurrently with AWT threads possible? (... the future of the opengl pipeline)

Laurent Bourgès bourges.laurent at gmail.com
Wed Feb 3 09:03:04 UTC 2021


Sergey,

I tested clemens patch and sometimes, jvm hangs if I close the xwindow
where the opengl surface is still rendering...

Could you explain us or do you have design documents (html, pdf, wiki...)
describing the awt locking scheme and its relations with x11 / opengl and
other native backends ?

Thanks,
Laurent

Le lun. 18 janv. 2021 à 23:52, Sergey Bylokhov <Sergey.Bylokhov at oracle.com>
a écrit :

> On 18.01.2021 04:41, Clemens Eisserer wrote:
> > So sure, for GPU limited cases this won't help a lot - however, typical
> java2d is usually CPU limited with tons of very small primitives and many
> state changes in between.
>
> It does not affect so much the xrender which do the same CPU related
> steps, but this speeds up so !much! OGL if executed in parallel.
> I think the benchmark is cheating here, it does not call XSync nor glflush
> for each operation, so it just checks the speed of pushing the data to the
> buffer, and not measured the actual rendering for both pipelines, unlike
> the software-based rendering.
>
>
> --
> Best regards, Sergey.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20210203/60d138c6/attachment-0001.htm>


More information about the 2d-dev mailing list