OSDN Git Service

drm_hwcomposer: Bump the acquire fence timeout to 83ms
authorSean Paul <seanpaul@chromium.org>
Thu, 1 Oct 2015 17:20:02 +0000 (13:20 -0400)
committerSean Paul <seanpaul@chromium.org>
Wed, 7 Oct 2015 02:45:59 +0000 (22:45 -0400)
To accomodate peak usage situations.

Change-Id: I46031ce394abf1ec09177089508dd625d7c17aaa
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drmdisplaycompositor.h

index c9973c6..0f3a12f 100644 (file)
@@ -51,9 +51,9 @@ class DrmDisplayCompositor {
  private:
   DrmDisplayCompositor(const DrmDisplayCompositor &) = delete;
 
-  // Set to 50ms which is somewhere between a reasonable amount of time to
-  // wait for a long render and a small enough delay to limit jank.
-  static const int kAcquireWaitTimeoutMs = 50;
+  // Set to 83ms (~12fps) which is somewhere between a reasonable amount of
+  // time to wait for a long render and a small enough delay to limit jank.
+  static const int kAcquireWaitTimeoutMs = 83;
 
   int ApplyPreComposite(DrmDisplayComposition *display_comp);
   int ApplyFrame(DrmDisplayComposition *display_comp);