mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-22 12:33:02 +00:00
Enable sustained performance mode on N+ when streaming
This commit is contained in:
parent
74f212c702
commit
7a81950819
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user