<AWT Dev> [9] RFR: 6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue May 17 16:01:54 UTC 2016

On 17.05.16 18:54, Vadim Pakhnushev wrote:
> For me this bug reproduces only when running through the RDP and with
> -Dsun.java2d.d3d=false flag.
> Basically each DescribePixelFormat takes about 40-60 ms when running
> without hardware acceleration because it calls LoadLibrary/FreeLibrary
> for opengl32.dll every time.
> So the fix is to cache the handle to the dll.

It is needed even in case of d3d=true?
(D3DGraphicsDevice extends Win32GraphicsDevice)

Best regards, Sergey.

More information about the awt-dev mailing list