mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 11:55:37 +00:00
Revert "Android: Enable sustained performance mode"
This reverts commit 96ff8c87e5
.
This commit is contained in:
parent
3a6ff109be
commit
d5a5969bd4
|
@ -5,7 +5,6 @@ import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.hardware.input.InputManager;
|
import android.hardware.input.InputManager;
|
||||||
import android.os.Build;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.SurfaceHolder;
|
import android.view.SurfaceHolder;
|
||||||
|
@ -185,10 +184,6 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
|
||||||
// Hook up controller input.
|
// Hook up controller input.
|
||||||
updateControllers();
|
updateControllers();
|
||||||
registerInputDeviceListener();
|
registerInputDeviceListener();
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
|
||||||
getWindow().setSustainedPerformanceMode(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -212,10 +207,6 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
|
||||||
AndroidHostInterface.getInstance().stopEmulationThread();
|
AndroidHostInterface.getInstance().stopEmulationThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
|
||||||
getWindow().setSustainedPerformanceMode(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
unregisterInputDeviceListener();
|
unregisterInputDeviceListener();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue