diff --git a/qupath-gui-fx/src/main/java/qupath/lib/gui/commands/TMAGridView.java b/qupath-gui-fx/src/main/java/qupath/lib/gui/commands/TMAGridView.java index a99279d02..9833fa99b 100644 --- a/qupath-gui-fx/src/main/java/qupath/lib/gui/commands/TMAGridView.java +++ b/qupath-gui-fx/src/main/java/qupath/lib/gui/commands/TMAGridView.java @@ -123,9 +123,9 @@ class TMAGridView implements Runnable, ChangeListener>, /** * Max thumbnails to store in cache. - * This ends up ~< 90MB, assuming RGBA. + * This ends up ~< 180MB, assuming RGBA. */ - private static int MAX_CACHE_SIZE = 250; + private static int MAX_CACHE_SIZE = 500; /** * Cache for storing image thumbnails @@ -279,11 +279,12 @@ private void initializeData(ImageData imageData) { long startTime = System.currentTimeMillis(); try { - latch.await(5, TimeUnit.SECONDS); + latch.await(10, TimeUnit.SECONDS); } catch (InterruptedException e1) { - logger.debug("Loaded {} cores in 5 seconds", cores.size() - latch.getCount()); + if (latch.getCount() > 0) + logger.warn("Loaded {} cores in 10 seconds", cores.size() - latch.getCount()); } - logger.debug("Countdown complete in {} seconds", (System.currentTimeMillis() - startTime)/1000.0); + logger.info("Countdown complete in {} seconds", (System.currentTimeMillis() - startTime)/1000.0); model.setImageData(imageData, cores);