1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-15 04:30:29 +00:00

Bump the image comparison threshold again

Not sure what the right long-term solution is here. An alternative image
comparison? Take multiple screenshots?
This commit is contained in:
Jonathan Coates 2021-10-03 11:21:37 +01:00
parent 06bf84f151
commit d700f1f500
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -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.