Split the parts into runs of consecutive parts that share a colorspace and render each run as a separate overlay referencing the same texture.
Split the parts into runs of consecutive parts that share a colorspace and render each run as a separate overlay referencing the same texture.