Mat.at() very slow writing to pixels

please use ctrl-e to format code here, not “block quote”