Futurepack Mod - Now with flyable Spaceships!

Futurepack Mod - Now with flyable Spaceships!

1M Downloads

[Waiting for Forge PR] FP Event Subscriber causing lag -

ProsperCraft opened this issue ยท 10 comments

commented

futurepackeventsubscriber

Ticking at 25k

commented

No, it currently only tracks the event subscribed, in this case: net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent.

Look for a class that has:

@SubscribeEvent
public void something(net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent event){
    //Your code here
}
commented

^Laggoggles mod author

commented

Is there a way to display wish methods ?

commented

@TerminatorNL well I have anout 4 of them thats why I asked ^^

commented

@ProsperCraft are you using lasers/rocket launcher with Transport chips?

commented

Or have you many living Entitys ?

commented

I think I know source of this lag, I have to check every tick if the PotionEffects from entities have changed so with alot of entities this will take alot of time, as I am iterating over the complete EntityList. This will get fixed as soon as MinecraftForge/MinecraftForge#4614 gets merged.

commented

I'm glad you found it! ๐Ÿ‘ ๐Ÿ‘

commented

It got merged, this means I can finally fix this.

commented

@ProsperCraft out of curiosity, what does the current timings show (I optimised since February alot)