Fix FPS drop when finger is moved around the screen on older android phones

This commit is contained in:
restorer
2015-06-07 14:14:55 +03:00
parent fddd40ab67
commit 5f0e63d7c4
2 changed files with 12 additions and 0 deletions

View File

@@ -510,6 +510,13 @@ class MainView extends GLSurfaceView {
}
try {
Thread.sleep((Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) ? 16 : 1);
} catch (InterruptedException e) {
}
return true;
}

View File

@@ -1225,6 +1225,11 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
}
}
try {
Thread.sleep((Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) ? 16 : 1);
} catch (InterruptedException e) {
}
return true;
}