Fixed zips
This commit is contained in:
@@ -9,6 +9,7 @@ import io.anuke.arc.graphics.g2d.*;
|
|||||||
import io.anuke.arc.math.*;
|
import io.anuke.arc.math.*;
|
||||||
import io.anuke.arc.scene.ui.layout.*;
|
import io.anuke.arc.scene.ui.layout.*;
|
||||||
import io.anuke.arc.util.*;
|
import io.anuke.arc.util.*;
|
||||||
|
import io.anuke.arc.util.async.*;
|
||||||
import io.anuke.mindustry.core.*;
|
import io.anuke.mindustry.core.*;
|
||||||
import io.anuke.mindustry.game.*;
|
import io.anuke.mindustry.game.*;
|
||||||
import io.anuke.mindustry.game.EventType.*;
|
import io.anuke.mindustry.game.EventType.*;
|
||||||
@@ -135,11 +136,7 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
|
|||||||
long target = (1000 * 1000000) / targetfps; //target in nanos
|
long target = (1000 * 1000000) / targetfps; //target in nanos
|
||||||
long elapsed = Time.timeSinceNanos(lastTime);
|
long elapsed = Time.timeSinceNanos(lastTime);
|
||||||
if(elapsed < target){
|
if(elapsed < target){
|
||||||
try{
|
Threads.sleep((target - elapsed) / 1000000, (int)((target - elapsed) % 1000000));
|
||||||
Thread.sleep((target - elapsed) / 1000000, (int)((target - elapsed) % 1000000));
|
|
||||||
}catch(InterruptedException ignored){
|
|
||||||
//ignore
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=3bd01eb4c67d11e36be2bd56f71e6928bf291345
|
archash=85f95089a6521880c87e0fc011b4a09f207d360d
|
||||||
|
|||||||
Reference in New Issue
Block a user