Skip to content

Commit f3034d6

Browse files
sky2smfr
authored andcommitted
x
1 parent 3f6115f commit f3034d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

MotionMark/resources/runner/motionmark.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,15 @@
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

0 commit comments

Comments
 (0)