From fca660cf730161f823e770ad1693fab441477edd Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 12 Apr 2012 20:43:16 -0700 Subject: [PATCH] don't wake-up eventthread every 16ms if there are no vsync requests Bug: 6332534 Change-Id: Idf79ad913770c6180969f6c95a9b125fff580231 --- services/surfaceflinger/EventThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/EventThread.cpp b/services/surfaceflinger/EventThread.cpp index d86c28090..21634ee97 100644 --- a/services/surfaceflinger/EventThread.cpp +++ b/services/surfaceflinger/EventThread.cpp @@ -170,7 +170,7 @@ bool EventThread::threadLoop() { } // wait for something to happen - if (mUseSoftwareVSync == true) { + if (mUseSoftwareVSync && waitForNextVsync) { // h/w vsync cannot be used (screen is off), so we use // a timeout instead. it doesn't matter how imprecise this // is, we just need to make sure to serve the clients