Standard applications don’t require a display refresh rate above 60Hz, hence it is advisable to avoid higher frequencies to avoid unnecessary
energy consumption.
The rule flags an issue when setFrameRate()
is invoked with a frameRate higher than 60Hz for android.view.Surface
and
android.view.SurfaceControl.Transaction
.
It’s important to note that the scheduler considers several factors when determining the display refresh rate. Therefore, using
setFrameRate()
doesn’t guarantee your app will achieve the requested frame rate.
What is the potential impact?
- Usability: the device may run out of battery faster than expected.
- Sustainability: the extra battery usage has a negative impact on the environment.