[OpenJDK 2D-Dev] Speed of drawPolyline on JDK11

Philip Race philip.race at oracle.com
Fri Oct 12 01:48:29 UTC 2018


And something else to try .. which I haven't tried, since I now believe
the problem isn't the drawing performance of a wide line, is to see
what happens if you do go that path - ie try 3,000 individual drawline 
calls.
It depends how much overhead matters whether it is better than (say)
breaking it into 100 calls with 30 points to drawPolyline ..

-phil.

On 10/11/18, 4:15 PM, Phil Race wrote:
>
>
> By the way, my actual application doesn't have 65000 lines but it
> draws 3 graphs with about 3000 points, which makes it noticeably slow
> when resizing the Window. I suppose I should look into cutting down
> the number of points somehow...


More information about the 2d-dev mailing list