Ender IO Forestry

Ender IO Forestry

954k Downloads

Lag Spikes

yaxley opened this issue ยท 8 comments

commented

Issue Description:

There are constant extreme lag spikes. Without the mod fps is mostly stable on 60 fps, sometimes dropping to 50. With the mod, the fps sometimes drops to 9 fps or less.

Steps to reproduce:

It was a fresh world, so no machines where in the world.


Affected Versions (Do not use "latest"):

  • EnderIO Base: 5.0.33
  • EnderCore: 0.5.39
  • Minecraft: 1.12.2
  • Forge: 14.23.4.2760
  • SpongeForge? no
  • Optifine? /no
  • Single Player

Other Mods

  • MoVillages
  • AbyssalCraft
    Aether
    AppleCore
    AppleSkin
    ArmorPlus
    AstralSorcery
    AutoRegLib
    BetterSprinting
    BiblioCraft
    BloodMagic
    Bloodmoon
    Botania
    Chameleon
    ChiselsAndBits
    CodeChickenLib
    CoFHCore
    CoFHWorld
    CraftTweaker
    Cucumber
    DamageControl
    DungeonTactics
    Electroblob's Wizardry
    EmbersRekendiled
    EchantmentDescriptions
    ExtendedCrafting
    FastWorkbench
    Fencejumper
    GalacticraftCore
    Galacticraft-Planets
    GalacticraftTweaker
    Gravestone
    GrimoireOfGaia3
    Guide API
    HeroicArmory
    HorsePower
    HungerOverhaul
    IceAndFire
    ImmersiveEngineering
    ImmersivePetroleum
    InControl
    JEI
    JourneyMap
    LootTweaker
    Mantle
    MaterialChanger
    MCMultiPart
    MicdoodleCore
    ModTweaker
    MTLib
    NetherEx
    NoRecipeBook
    Nutrition
    Orbis
    Pam's Harvestcraft
    Placebo
    Quark
    RedstoneFLux
    Roguelike Dungeons
    Rustic
    SaltyMod
    ScalingHealth
    SilentLib
    StorageDrawers
    TConstruct
    Thaumcraft
    ThaumicJEI
    Betweenlands
    DragonLIb
    OneProbe
    ThermalDynamics
    ThermalExpansion
    ThermalFoundation
    TinkersComplement
    Toast Control
    TwilightForest
    ViesCraft
    VillagerTrades
    DefiledLands
commented

After a few tests of trying to figure out why other mod packs didn't use so much ram compared to others I found that with at least JEI installed the ender io facades cause a drastic increase in load time and the amount of recipes loaded, nearly quadrupling the amount of recipes. Without ender io it dropped the load time, ram usage, and recipe count.

Ender io by itself or with a few mods runs great, but with over 100 other mods it creates an crazy amount of facade recipes via the painting machine (This also applies with other facade introducing mods like AE2 or Buildcraft).
This was a recent find so I'm trying to figure out a way to remove the facade/painting machine recipes with crafttweaker or in the configs, I'll give any updates on that if I do find anything.

Without Enderio
without enderio

With Enderio
with enderio
(EDIT:Any Version below 5.0.37 fixes this issue, a thanks to Henry)

commented

Painting recipes are generated on the fly when looking up the recipe or use of an item. They are not pre-generated at startup. Otherwise you'd see about 10 million extra recipes there...

BTW, Ender IO generates barsteps (those things you see on the loading screen) for its recipes, too. I think Forge also writes them into some logfile, including detailed timing information.

commented

I could've searched for days and still haven't found a fix for this, thanks! I got the 5.0.36 version and it also produced the same solution. Still a downside since I'm missing most of the bug fixes in the latest versions but it's manageable.

commented

Maybe the issue is somehow related to this one: #4990?

commented

Yeah.. its not enderio causing that if there are no machines... try a profiler mod to see what your culprit is.

commented

Use the vanilla profiler (Shift+F3) to drill down to the source.

commented

I did some more tests. The lag seems to be caused by ender io and some other mod. The lag is always there when I ad ender io to this mod pack, but in some other mod packs I use it does not exist. I tried to find the culprit, but so far no luck. Will try again tomorrow.

commented

Tried a lot of configurations today. As close as I can tell it is memory issue related to ender io and the mod viescraft. I was actually able to get it to work with both mods, by assigning 6GB of RAM. I previously was able to play on 3 GB and had a completely stable fps on 4 GB. So I still think it is a bit weird, but on the other hand maybe it isn't the biggest problem.

You can close the issue if you like. If you want me to run some more tests, I'm willing, but I'm a bit inexperienced in profiling minecraft, so I would need to know the information you are looking for.