perf improvements, mobile working on i4s

This commit is contained in:
Bryce Covert
2017-05-24 06:15:28 -07:00
parent be916eb5f3
commit 2f6e0a4081
10 changed files with 262 additions and 186 deletions

View File

@@ -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();
}
}
}