File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
MotionMark/resources/runner Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 196196
197197 var resample = new SampleData ( regressionResult . samples . fieldMap , resampleData ) ;
198198 var bootstrapRegressionResult = findRegression ( resample , predominantProfile ) ;
199+ if ( bootstrapRegressionResult . regression . t2 < 0 ) {
200+ // A positive slope means the frame rate decreased with increased complexity (which is the expected
201+ // benavior). OTOH, a negative slope means the framerate increased as the complexity increased. This
202+ // likely means the max complexity needs to be increased. None-the-less, if the slope is negative use
203+ // the max-complexity as the computed complexity (intersection of the two lines) does not tell us
204+ // the point when the browser could not handle the complexity, rather it tells us when the framerate
205+ // increased.
206+ return bootstrapRegressionResult . maxComplexity ;
207+ }
199208 return bootstrapRegressionResult . regression . complexity ;
200209 } , .8 ) ;
201210
You can’t perform that action at this time.
0 commit comments