Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4633)

Unified Diff: chrome/test/data/third_party/spaceport/js/tests/sprites.js

Issue 11314012: Add spaceport benchmark to Chrome Remote Control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/third_party/spaceport/js/tests/sprites.js
diff --git a/chrome/test/data/third_party/spaceport/js/tests/sprites.js b/chrome/test/data/third_party/spaceport/js/tests/sprites.js
index b491fe6a5cd4718be1d0c110fc4d86ca59013e15..64b2d03b24140e36d412234e3057494ad7001db7 100644
--- a/chrome/test/data/third_party/spaceport/js/tests/sprites.js
+++ b/chrome/test/data/third_party/spaceport/js/tests/sprites.js
@@ -168,7 +168,7 @@ define([ 'sprites/sources', 'sprites/transformers', 'sprites/renderers', 'util/e
rawData.push([ objectCount, results ]);
var timePerObjectEstimate = 1/(objectCount*results.fps);
- var estimatedMaxObjects = Math.floor(1/(targetFramerate * timePerObjectEstimate));
+ var estimatedMaxObjects = Math.min(5000, Math.floor(1/(targetFramerate * timePerObjectEstimate)));
var nextObjectCount = nextNumberToTry(fpsResults, estimatedMaxObjects);
test(nextObjectCount);

Powered by Google App Engine
This is Rietveld 408576698