Lag in event handler
LemADEC opened this issue ยท 2 comments
As of cyberware-1.12.2-0.2.10.15 found in FTB Interactions 1.0.1, there's significant lag coming for the mod event handling, even with a single player online:
Details on the first sub-event:
From the looks of it, each upgrade has its own event that'll check for capability through flaxbeard.cyberware.api.CyberwareAPI.isCyberwareInstalled() . The latest is fairly inefficient.
Since most entities have no robotic parts, consider inverting the loop logic (get installed upgrades then loop on them, instead of looping all possible upgrades then check if they're actually installed).
Dup of #66
Fixed in dev