• Sunny Sachanandani's avatar
    cc: Subtract estimated display draw time from begin frame deadline · fc04607a
    Sunny Sachanandani authored
    Display draw time was being subtraced from display scheduler's deadline,
    but a similar adjustment was missing from cc scheduler's deadline. To
    fix this inconsistency, this CL applies the deadline adjustment at a
    single place, the begin frame source so that there's no mismatch.
    
    This makes cc scheduler have a later deadline and can cause it to wait
    longer for the main thread. Recent experimentation has shown improved
    latency in the absence of a scheduler deadline. It's hoped that some of
    the improvement can be achieved by just fixing the deadline.
    
    Bug: 1042584
    Change-Id: Ia948b64c1dbba5239d1b97062224e73487e35fba
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2045210
    Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
    Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
    Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#781159}
    fc04607a
scheduler.cc 40.3 KB