Trying to merge vitzli's Metal2 support into main mod