• brucedawson's avatar
    Workaround DwmGetCompositionTimingInfo giving bad qpcRefreshPeriod · 66c949d2
    brucedawson authored
    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
    
    Review URL: https://codereview.chromium.org/1141013004
    
    Cr-Commit-Position: refs/heads/master@{#329983}
    66c949d2
gl_surface_win.cc 11.8 KB