Cg optimizePrediction