GregTechCEu / GregTech-Modern

GregTech CE Unofficial for modern versions
GNU Lesser General Public License v3.0
290 stars 172 forks source link

Large performance loss from 1.4.1 -> 1.4.2 #2018

Open Fuyukai opened 1 month ago

Fuyukai commented 1 month ago

Checked for existing issues

Tested latest version

GregTech CEu Version

1.4.2

Minecraft Version

1.20.1

Recipe Viewer Installed

EMI

Environment

ssp

Cross-Mod Interaction

No

Other Installed Mods

too many to list here + largely not relevant. check the spark profiles list

Expected Behavior

Actual Behavior

Steps to Reproduce

1) load the game 2) press F3 3) notice that integrated server tick time is way higher

Additional Information

Slow (1.4.2) spark profile: https://files.catbox.moe/sp40na.sparkprofile

Fast-ish (1.4.1) spark profile: https://files.catbox.moe/81sb8o.sparkprofile

The slower profile now spends significantly more time in RecipeLogic#findAndHandle.

krossgg commented 1 month ago

Hi, please reattach the profile for 1.4.2, I can't get it to load. Thanks.

Fuyukai commented 1 month ago

Here's a second 1.4.2 profile: https://files.catbox.moe/s7ss07.sparkprofile

screret commented 1 month ago

could you run one with a --only-ticks-over 50 in the command parameters?

screret commented 1 month ago

so we actually see what's the laggy part

Fuyukai commented 1 month ago

Web viewer works this time: https://spark.lucko.me/1ogovtM3kR. Seems to be generators.

krossgg commented 1 month ago

Hi, could you try with the gtceu-1.20.1-1.4.3.jar file found in this zip and let us know? Thanks. It looks like a problem that may have already been fixed in a PR but it hasn't made its way to release yet.

https://github.com/GregTechCEu/GregTech-Modern/actions/runs/11016580412/artifacts/1972244733

Fuyukai commented 1 month ago

This doesn't fix anything, sadly. Regular profile and 50ms profile still show the same slowdown.

Fuyukai commented 1 month ago

Git bisect shows that the commit that introduced the regression was 05f5dd120c959e192a92ba73210b994c15ad4102, or PR #1955.