Casting the matrix transform to integer values to prevent tile flickering, and tweaking update.