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

Issue 11028129: cc: Improve texture per second calculation and overhead (Closed)

Created:
8 years, 2 months ago by brianderson
Modified:
8 years, 2 months ago
Reviewers:
nduca, reveman, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This keeps a sorted history of the texture upload rate and increases the history size to improve consistency/accuracy and overhead. Prior to this patch, calling ThrottledTextureUploader::estimatedTexturesPerSecond ran a sort operation, which will be slow for larger history sizes. Instead of keeping a FIFO history, it keeps sorted history and discards the min and max values. BUG=155172 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163828

Patch Set 1 #

Total comments: 1

Patch Set 2 : Keep a sorted history and discard min/max #

Total comments: 4

Patch Set 3 : Use 1/2 median #

Patch Set 4 : Rebase #

Total comments: 1

Patch Set 5 : Get rid of the global variable #

Patch Set 6 : Fix compile errors for windows and android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -20 lines) Patch
M cc/texture_uploader.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/texture_uploader.cc View 1 2 3 4 5 4 chunks +16 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
reveman
I'm generally OK with this but a bit worried about having up to a 1000 ...
8 years, 2 months ago (2012-10-11 17:59:46 UTC) #1
brianderson
Addressed comments. I decided not to keep a parallel FIFO history structure because discarding the ...
8 years, 2 months ago (2012-10-12 00:31:48 UTC) #2
reveman
I think the increased history size and removal of max/min values are great! Could we ...
8 years, 2 months ago (2012-10-12 01:41:00 UTC) #3
reveman
lgtm. would be great if you removed the global variable while you're at it. https://codereview.chromium.org/11028129/diff/10001/cc/texture_uploader.cc ...
8 years, 2 months ago (2012-10-23 21:06:58 UTC) #4
brianderson
Adding enne for owners review.
8 years, 2 months ago (2012-10-23 21:14:20 UTC) #5
enne (OOO)
lgtm
8 years, 2 months ago (2012-10-23 21:18:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/11028129/14001
8 years, 2 months ago (2012-10-23 21:21:30 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 2 months ago (2012-10-23 21:37:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/11028129/19001
8 years, 2 months ago (2012-10-23 21:37:34 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-10-24 15:12:49 UTC) #10
Change committed as 163828

Powered by Google App Engine
This is Rietveld 408576698