<AWT Dev>  RFR: 6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds
philip.race at oracle.com
Tue May 17 15:58:21 UTC 2016
looks good to me.
add noreg-hard or perf to the bug.
On 05/17/2016 08:54 AM, Vadim Pakhnushev wrote:
> Hi all,
> Please review this fix:
> 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.
More information about the awt-dev