sf: Avoid disabling DispSync resync
Avoid disabling DispSync resync if app and SF events aren't using phase offsets. This prevents hardware VSYNC from turning on always whenever something needs to be drawn, thereby bringing down the power numbers. Change-Id: I83c8f79eb46b9fdaa730ec32767ebed3286347b8
This commit is contained in:
parent
24e0fdd93b
commit
67ec1ad104
@ -26,11 +26,8 @@
|
|||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
// Ignore present (retire) fences if the device doesn't have support for the
|
// Ignore present (retire) fences if the device doesn't have support for the
|
||||||
// sync framework, or if all phase offsets are zero. The latter is useful
|
// sync framework.
|
||||||
// because it allows us to avoid resync bursts on devices that don't need
|
#if defined(RUNNING_WITHOUT_SYNC_FRAMEWORK)
|
||||||
// phase-offset VSYNC events.
|
|
||||||
#if defined(RUNNING_WITHOUT_SYNC_FRAMEWORK) || \
|
|
||||||
(VSYNC_EVENT_PHASE_OFFSET_NS == 0 && SF_VSYNC_EVENT_PHASE_OFFSET_NS == 0)
|
|
||||||
static const bool kIgnorePresentFences = true;
|
static const bool kIgnorePresentFences = true;
|
||||||
#else
|
#else
|
||||||
static const bool kIgnorePresentFences = false;
|
static const bool kIgnorePresentFences = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user