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

View File

@@ -267,6 +267,7 @@ public class Mods implements Loadable{
TextureFilter filter = Core.settings.getBool("linear") ? TextureFilter.linear : TextureFilter.nearest;
Time.mark();
//generate new icons
for(Seq<Content> arr : content.getContentMap()){
arr.each(c -> {
@@ -277,6 +278,7 @@ public class Mods implements Loadable{
}
});
}
Log.debug("Time to generate icons: @", Time.elapsed());
//dispose old atlas data
Core.atlas = packer.flush(filter, new TextureAtlas());
@@ -287,7 +289,7 @@ public class Mods implements Loadable{
packer.dispose();
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){