From d700f1f500faf5ac70743bde3665acfa08e533a4 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sun, 3 Oct 2021 11:21:37 +0100 Subject: [PATCH] Bump the image comparison threshold again Not sure what the right long-term solution is here. An alternative image comparison? Take multiple screenshots? --- .../java/dan200/computercraft/ingame/mod/ImageUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testMod/java/dan200/computercraft/ingame/mod/ImageUtils.java b/src/testMod/java/dan200/computercraft/ingame/mod/ImageUtils.java index a3b958c87..bcf38fbaf 100644 --- a/src/testMod/java/dan200/computercraft/ingame/mod/ImageUtils.java +++ b/src/testMod/java/dan200/computercraft/ingame/mod/ImageUtils.java @@ -18,9 +18,9 @@ public final class ImageUtils private static final Logger LOG = LogManager.getLogger( ImageUtils.class ); /** - * Allow 0.1% of pixels to fail. This allows for slight differences at the edges. + * Allow 0.3% of pixels to fail. This allows for slight differences at the edges. */ - private static final double PIXEL_THRESHOLD = 0.001; + private static final double PIXEL_THRESHOLD = 0.003; /** * Maximum possible distance between two colours. Floating point differences means we need some fuzziness here.