Progress on OptimalSizeForTexture() implementation.