mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Enable sustained performance mode on N+ when streaming
This commit is contained in:
@@ -258,6 +258,12 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
streamView);
|
streamView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use sustained performance mode on N+ to ensure consistent
|
||||||
|
// CPU availability
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
getWindow().setSustainedPerformanceMode(true);
|
||||||
|
}
|
||||||
|
|
||||||
inputCaptureProvider = InputCaptureManager.getInputCaptureProvider(this, this);
|
inputCaptureProvider = InputCaptureManager.getInputCaptureProvider(this, this);
|
||||||
|
|
||||||
if (prefConfig.onscreenController) {
|
if (prefConfig.onscreenController) {
|
||||||
|
|||||||
Reference in New Issue
Block a user