OSDN Git Service

drm_hwcomposer: Switch to triple buffering
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 19 Jun 2015 21:50:45 +0000 (14:50 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Fri, 19 Jun 2015 22:22:54 +0000 (15:22 -0700)
This increases the performance of the UI (30->40 fps).

BUG=none
TEST=boot to UI, swipe between desktops, measure fps

Change-Id: Ie0ff4b51c3db402a40c9676d3f09d48d85097bce

hwcomposer.cpp

index 6c007bc..5d395b9 100644 (file)
@@ -43,7 +43,7 @@
 #include <ui/PixelFormat.h>
 
 #define UM_PER_INCH 25400
-#define HWC_FB_BUFFERS 2
+#define HWC_FB_BUFFERS 3
 
 namespace android {