<AWT Dev> [OpenJDK 2D-Dev] Review request for 8029339 Custom MultiResolution image support on HiDPI displays

Hendrik Schreiber hs at tagtraum.com
Thu Sep 17 13:49:25 UTC 2015


>> 
>> I think it would be foolish to only support @2x and not also @3x, which has been supported by XCode for quite some time now.
> 
>    There is a performance issue that the Toolkit.getImage(url) needs to check  if @2x, @3x, ... exist for any given image. It especially takes a long time  when images are stored on a remote server.
> 
>  May be it is better to have a system property which can contain a list of possible suffixes and used by Toolkit.getImage(...) methods for resolution variants loading.

I’m not a big fan of magic system properties, that are typically not very well documented, but do understand that there can be a performance hit for the case you describe.

Do we really hit this problem that often? I.e. loading from e remote server using Toolkit.getImage(url)?

-hendrik


More information about the awt-dev mailing list