sourceInset constant
double
const sourceInset
How much is trimmed from each side of a tileset cell before drawing, in texels.
Tiles in an atlas share their edges with the neighbouring tiles and usually have no padding. When the destination lands on a fractional pixel — which happens on every window size that makes the zoom fractional — the sample on the tile's edge can round into the next cell and paint a one pixel line of the neighbour's art. Half a texel is enough to keep every sample inside the cell and is not visible.
Implementation
static const double sourceInset = 0.5;