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

Issue 1141013004: Workaround DwmGetCompositionTimingInfo giving bad qpcRefreshPeriod (Closed)

Created:
5 years, 7 months ago by brucedawson
Modified:
5 years, 7 months ago
CC:
chromium-reviews, brianderson, sunnyps, bajones
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Workaround DwmGetCompositionTimingInfo giving bad qpcRefreshPeriod On at least one machine Chrome hits a problem where DwmGetCompositionTimingInfo says that qpcRefreshPeriod is 60. This implies a refresh rate of ~34,000 fps. Chrome dutifully tries to hit this frame rate leading to excessive CPU usage. This change adds a couple of checks to detect bad values and fix them. In parallel this bug is being reported. R=piman@chromium.org BUG=486226 Committed: https://crrev.com/66c949d2f5478a20be46316c338174d5c3ad8735 Cr-Commit-Position: refs/heads/master@{#329983}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rename interval2 to rate_interval #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -8 lines) Patch
M ui/gl/gl_surface_win.cc View 1 3 chunks +26 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
brucedawson
This is a hack fix for a driver problem. If I've done my work properly ...
5 years, 7 months ago (2015-05-14 22:34:16 UTC) #2
Ken Russell (switch to Gerrit)
This is great, but I'd like to defer review to jbauman or piman.
5 years, 7 months ago (2015-05-14 22:38:20 UTC) #4
Ken Russell (switch to Gerrit)
Of course, if Brian or Sunny would like to review this that's great too.
5 years, 7 months ago (2015-05-14 22:38:46 UTC) #5
jbauman
lgtm https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc File ui/gl/gl_surface_win.cc (right): https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc#newcode82 ui/gl/gl_surface_win.cc:82: base::TimeDelta interval2; Nit, maybe call this "backup_interval".
5 years, 7 months ago (2015-05-14 22:42:39 UTC) #6
brucedawson
https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc File ui/gl/gl_surface_win.cc (right): https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc#newcode82 ui/gl/gl_surface_win.cc:82: base::TimeDelta interval2; On 2015/05/14 22:42:39, jbauman wrote: > Nit, ...
5 years, 7 months ago (2015-05-14 22:51:57 UTC) #7
Ken Russell (switch to Gerrit)
lgtm when jbauman's comments are addressed
5 years, 7 months ago (2015-05-14 23:02:20 UTC) #8
sunnyps
LGTM. https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc File ui/gl/gl_surface_win.cc (right): https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc#newcode82 ui/gl/gl_surface_win.cc:82: base::TimeDelta interval2; On 2015/05/14 22:51:57, brucedawson wrote: > ...
5 years, 7 months ago (2015-05-14 23:05:14 UTC) #10
jbauman
On 2015/05/14 22:51:57, brucedawson wrote: > https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc > File ui/gl/gl_surface_win.cc (right): > > https://codereview.chromium.org/1141013004/diff/1/ui/gl/gl_surface_win.cc#newcode82 > ...
5 years, 7 months ago (2015-05-14 23:12:42 UTC) #11
brucedawson
I renamed interval2 to rate_interval and tweaked the comment before its declaration. I also stepped ...
5 years, 7 months ago (2015-05-14 23:15:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1141013004/20001
5 years, 7 months ago (2015-05-14 23:21:25 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-15 00:07:51 UTC) #16
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 00:08:38 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/66c949d2f5478a20be46316c338174d5c3ad8735
Cr-Commit-Position: refs/heads/master@{#329983}

Powered by Google App Engine
This is Rietveld 408576698