Start of fancy render state optimization