Optimized quad preprocessing in Level