Extra debug logging for mod pack

This commit is contained in:
Anuken
2021-08-15 21:59:57 -04:00
parent bfdcb971fc
commit b3ef412368
3 changed files with 7 additions and 5 deletions

View File

@@ -1789,7 +1789,7 @@ public class UnitTypes implements ContentList{
shootY = 6f; shootY = 6f;
beamWidth = 0.8f; beamWidth = 0.8f;
mirror = false; mirror = false;
repairSpeed = 0.7f; repairSpeed = 0.75f;
bullet = new BulletType(){{ bullet = new BulletType(){{
maxRange = 120f; maxRange = 120f;
@@ -1835,8 +1835,8 @@ public class UnitTypes implements ContentList{
speed = 0f; speed = 0f;
splashDamage = 50f; splashDamage = 55f;
splashDamageRadius = 40f; splashDamageRadius = 45f;
}}; }};
}}); }});
}}; }};

View File

@@ -267,6 +267,7 @@ public class Mods implements Loadable{
TextureFilter filter = Core.settings.getBool("linear") ? TextureFilter.linear : TextureFilter.nearest; TextureFilter filter = Core.settings.getBool("linear") ? TextureFilter.linear : TextureFilter.nearest;
Time.mark();
//generate new icons //generate new icons
for(Seq<Content> arr : content.getContentMap()){ for(Seq<Content> arr : content.getContentMap()){
arr.each(c -> { arr.each(c -> {
@@ -277,6 +278,7 @@ public class Mods implements Loadable{
} }
}); });
} }
Log.debug("Time to generate icons: @", Time.elapsed());
//dispose old atlas data //dispose old atlas data
Core.atlas = packer.flush(filter, new TextureAtlas()); Core.atlas = packer.flush(filter, new TextureAtlas());
@@ -287,7 +289,7 @@ public class Mods implements Loadable{
packer.dispose(); packer.dispose();
packer = null; packer = null;
Log.debug("Time to update textures: @", Time.elapsed()); Log.debug("Total time to generate & flush textures synchronously: @", Time.elapsed());
} }
private PageType getPage(AtlasRegion region){ private PageType getPage(AtlasRegion region){

View File

@@ -11,4 +11,4 @@ android.useAndroidX=true
#used for slow jitpack builds; TODO see if this actually works #used for slow jitpack builds; TODO see if this actually works
http.socketTimeout=80000 http.socketTimeout=80000
http.connectionTimeout=80000 http.connectionTimeout=80000
archash=f31d58eac8bf5f1f674b0d6219c1e34ba54de2cc archash=4582339cd9052be86141fbacf2f2180b09eb585c