perf improvements, mobile working on i4s
This commit is contained in:
@@ -19,6 +19,8 @@ public class IOSLauncher extends IOSApplication.Delegate {
|
||||
config.orientationPortrait = false;
|
||||
config.orientationLandscape = true;
|
||||
config.preferredFramesPerSecond = 30;
|
||||
config.useAccelerometer=false;
|
||||
config.useCompass=false;
|
||||
|
||||
RT.var("clojure.core", "require").invoke(Symbol.intern("advent.core"));
|
||||
try {
|
||||
@@ -38,4 +40,11 @@ public class IOSLauncher extends IOSApplication.Delegate {
|
||||
UIApplication.main(argv, null, IOSLauncher.class);
|
||||
pool.close();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void didReceiveMemoryWarning(UIApplication application) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
System.gc();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user