docs: public static int getMinimumCacheSize(int tileSize, double overdrawFactor) {
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          return (int) Math.max(4, Math.round((2 + screenSize.getWidth() * overdrawFactor / tileSize)
                  * (2 + screenSize.getHeight() * overdrawFactor / tileSize)));
      }