<AWT Dev> [9] RFR: 6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds
Vadim Pakhnushev
vadim.pakhnushev at oracle.com
Tue May 17 15:54:30 UTC 2016
Hi all,
Please review this fix:
https://bugs.openjdk.java.net/browse/JDK-6477756
http://cr.openjdk.java.net/~vadim/6477756/webrev.00/
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.
There is no need to free it.
Thanks,
Vadim
More information about the awt-dev
mailing list