Skip to content

Commit

Permalink
Call updateSustainedPerformanceMode on app focus changes. Should help #…
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 8, 2018
1 parent ecee4c7 commit 7d3efdc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/src/org/ppsspp/ppsspp/NativeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,12 @@ public void surfaceCreated(SurfaceHolder holder) {
holder.setFixedSize(desiredSize.x, desiredSize.y);
}

@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
updateSustainedPerformanceMode();
}

@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
Log.v(TAG, "surfaceChanged: isCreating:" + holder.isCreating() + " holder: " + holder.toString());
Expand Down

0 comments on commit 7d3efdc

Please sign in to comment.