Optimize preshader shader selection