mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-22 04:22:45 +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);
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
if (prefConfig.onscreenController) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user