Craftoria

Craftoria

816k Downloads

[Bug Report]: Guard villagers lag

andreywux opened this issue ยท 4 comments

commented

Modpack Version

1.21.2

Describe your issue.

When I put a full set of enchanted armour on a guard villager, the game starts to lag badly (150fps-> 20fps)

Crash Report

No response

Latest Log

No response

Have you modified the modpack?

No

User Modifications

No response

Did the issue happen in singleplayer or on a server?

Singleplayer

Discord Username

No response

commented

seems to be performance issues relating to the optifine nbt property compatibility rendering happening in Entity Texture Features

I would suggest trying some of the configs within ETF to see if you can limit the effect, for example you can change the update frequency from Fast to Average or Slow. you may be able to disable nbt property lookups entirely in the ETF settings, as well.

commented

it may be related to this Traben-0/Entity_Texture_Features#373 which theoretically will be fixed "soon" (which is subjective). you would need to have provided logs, as well, which the issue template told you to provide.

Please test with and without entity texture features changes (which may require disabling the fresh animations resource pack in openloader's config and the resource pack menu).

commented
  1. What do you get when you run /data get entity on the affected guard villager (the one with a full set of enchanted armor)?
  2. Have you tried running a profiler on the client side with the affected guard villager in view (by running sparkc profiler start, looking at the villager for 30+ seconds, then running sparkc profiler stop)?
commented
  1. What do you get when you run /data get entity on the affected guard villager (the one with a full set of enchanted armor)?
  2. Have you tried running a profiler on the client side with the affected guard villager in view (by running sparkc profiler start, looking at the villager for 30+ seconds, then running sparkc profiler stop)?

1. Guard has the following entity data: {Brain: {memories: {}}, HurtByTimestamp: 0, Owner: [I; 216631643, 1923960369, -2144016601, -107854651], Invulnerable: 0b, Gossips: [{Target: [I; 216631643, 1923960369, -2144016601, -107854651], Type: "minor_positive", Value: 15}], AbsorptionAmount: 0.0f, FallDistance: 0.0f, Interacting: 0b, HandDropChances: [100.0f, 100.0f], PersistenceRequired: 1b, UUID: [I; -1294006135, 643713146, -1352243380, -387079701], Patrolling: 0b, NeoForgeData: {}, castingSpellLevel: 0, ShieldCooldown: 0, Air: 300s, HandItems: [{components: {"minecraft:enchantments": {levels: {"minecraft:looting": 2}}}, count: 1, id: "twilightforest:steeleaf_sword"}, {components: {"minecraft:enchantments": {levels: {"minecraft:efficiency": 2}}}, count: 1, id: "twilightforest:steeleaf_axe"}], Variant: "desert", ArmorDropChances: [100.0f, 100.0f, 100.0f, 100.0f], isCasting: 0b, Pos: [64.75398699278118d, 140.0d, 149.24420109797745d], CanPickUpLoot: 0b, LastGossipTime: 0L, HurtTime: 0s, Inventory: [{count: 1, Slot: 0b, components: {"minecraft:enchantments": {levels: {"minecraft:aqua_affinity": 1}}}, id: "twilightforest:ironwood_helmet"}, {count: 1, Slot: 1b, components: {"minecraft:enchantments": {levels: {"minecraft:protection": 1}}}, id: "twilightforest:ironwood_chestplate"}, {count: 1, Slot: 2b, components: {"minecraft:enchantments": {levels: {"minecraft:fire_protection": 2}}}, id: "twilightforest:steeleaf_leggings"}, {count: 1, Slot: 3b, components: {"minecraft:enchantments": {levels: {"minecraft:feather_falling": 2}}}, id: "twilightforest:steeleaf_boots"}, {count: 1, Slot: 4b, components: {"minecraft:enchantments": {levels: {"minecraft:efficiency": 2}}}, id: "twilightforest:steeleaf_axe"}, {count: 1, Slot: 5b, components: {"minecraft:enchantments": {levels: {"minecraft:looting": 2}}}, id: "twilightforest:steeleaf_sword"}], "neoforge:attachments": {"apotheosis:tier_augments_applied": 1b, "blueflame:blue_flame_handler": {isOnFire: 0b}, "twilightforest:fortification_shields": {temporary_shields: 0, permanent_shields: 0}}, usedSpecial: 0b, FallFlying: 0b, PortalCooldown: 0, evasionHitsRemaining: 0.0f, DeathTime: 0s, effectFlags: 0L, KickCooldown: 0, LastGossipDecay: 19073L, castingSpellId: "", AngerTime: 0, Motion: [0.0d, -0.0784000015258789d, 0.0d], Health: 20.0f, es_data: {in_ether: 0b, in_abyssal_fire_ticks: 0}, SpawnWithArmor: 0b, spellSelection: {lastSlot: "", index: -1, slot: "", lastIndex: -1}, KickTicks: 0, Following: 0b, LeftHanded: 0b, OnGround: 1b, castingEquipmentSlot: "", Rotation: [44.791412f, -0.1351359f], heartStopAccumulatedDamage: 0.0f, Fire: -1s, ArmorItems: [{components: {"minecraft:enchantments": {levels: {"minecraft:feather_falling": 2}}}, count: 1, id: "twilightforest:steeleaf_boots"}, {components: {"minecraft:enchantments": {levels: {"minecraft:fire_protection": 2}}}, count: 1, id: "twilightforest:steeleaf_leggings"}, {components: {"minecraft:enchantments": {levels: {"minecraft:protection": 1}}}, count: 1, id: "twilightforest:ironwood_chestplate"}, {components: {"minecraft:enchantments": {levels: {"minecraft:aqua_affinity": 1}}}, count: 1, id: "twilightforest:ironwood_helmet"}], attributes: [{id: "puffish_attributes:fall_reduction", base: NaNd}, {id: "minecraft:generic.armor_toughness", base: 0.0d}, {id: "puffish_attributes:jump", base: NaNd}, {id: "minecraft:generic.armor", base: 0.0d}, {id: "minecraft:generic.burning_time", base: 1.0d}, {id: "minecraft:generic.oxygen_bonus", base: 0.0d}, {id: "caelus:fall_flying", base: 0.1d}, {id: "minecraft:generic.attack_damage", base: 1.0d}, {id: "minecraft:generic.movement_speed", base: 0.5d}]}
2. https://spark.lucko.me/CCQfLTp9gp