Skip to content

Commit

Permalink
Prefetch 1024px img in case of PANO photo
Browse files Browse the repository at this point in the history
  • Loading branch information
ireun committed Dec 3, 2024
1 parent 4647e5e commit 4072349
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private static void runnableCacheSurroundingImages(INode currentImage) {
}
final IWay<?> iWay = MapillaryImageUtils.getSequence(currentImage);
// We prefetch both ways
final Type type = Type.THUMB_256;
final Type type = MapillaryImageUtils.IS_PANORAMIC.test(currentImage) ? Type.THUMB_1024 : Type.THUMB_256; // Prefetch larger pic in case of Pano photo.
if (iWay != null) {
// Avoid CME -- getImage may remove nodes from the way
final List<? extends INode> wayNodes = new ArrayList<>(iWay.getNodes());
Expand Down

0 comments on commit 4072349

Please sign in to comment.