Custom Entity Models (CEM)

Custom Entity Models (CEM)

5M Downloads

[BUG] 1.18 animation a bit laggy

twinberrycheesecake opened this issue ยท 3 comments

commented

Version

  • cem 0.7.0

Describe the bug
animation seems to be delayed by like 2 seconds
also when an animation starts it spazzs a bit
most notable parts were legs and arms
it doesn't happen on 1.17.1 (cem 0.6.4) or 1.18, 1.17.1, and 1.16.5 optifine

here is my animation for villagers
all the bones are child of "body" bone

"tail.rx": "sin(age / 9) / 18 + 1.57",
"tail.ry": "- sin(limb_swing) / 2.5",
"left_leg2.rx": "left_leg.rx",
"right_leg2.rx": "right_leg.rx",
"headbone.rx": "torad(head_pitch)",
"headbone.ry": "torad(head_yaw)",
"right_ear.ry": "abs(min(sin(age / 8) - 2 * cos(age / 8) - sin(age / 12) + cos(age / 12) + 2, 0)) / 4",
"left_ear.ry": "abs(min(sin((age + 100) / 8) - 2 * cos((age + 100) / 8) - sin((age + 100) / 12) + cos((age + 100) / 12) + 2, 0)) / -4",
"rightleft_ear.rx": "(1 - health / max_health) * 0.34",
"left_ear.rx": "(1 - health / max_health) * 0.34",
"right_arm2.rx": "left_leg.rx + 7",
"left_arm2.rx": "right_leg.rx + 7"

also in case of zombie villagers, arms worked differently from cem 0.6.4 or optifine
arms were rotated so I had to change the values to look similar to other platforms

"right_arm2.rx": "right_arm.rx + 1.3", -----> had to change from 0.2
"left_arm2.rx": "left_arm.rx + 1.3", -----> had to change from 0.2
"right_arm2.ry": "right_arm.ry + 0.2", -----> had to change from 0.1
"left_arm2.ry": "left_arm.ry - 0.2" -----> had to change from 0.1

Expected behavior
no delay

Screenshots
2021-12-19_04 02 59

Desktop:

  • OS: windows 10
  • Java Version: 17.0.1
  • Minecraft Version: Minecraft 1.18 Fabric 0.12.12 no other mods

Additional context
also happens when with all the performance mods like sodium, lithium, ferritecore and stuff installed

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within 14 days. Thank you for your contributions.

commented

that's interesting, there's literally no change in the code to render those animations
maybe Mojang changed something about entity rendering I'm unaware of? or there's something different with your installation?

commented

maybe they put it off priority to render all the cliffs and caves