feldim2425 / MoreOverlays

MC Mod : Brings back some of the NEI Overlays ( Mob Spawns, Chunk Bounds, Item Search)
MIT License
22 stars 18 forks source link

Improve startup time and reduce log spam by using new JEI API to get filtered items #15

Closed mezz closed 8 years ago

mezz commented 8 years ago

MoreOverlays is creating a new ItemFilter on startup, which takes a while and spams the log with lots of item errors (this is normal, but I want to avoid having it happen twice). On a big pack, the log said it was taking more than 4600 ms to start. After this PR it's 0 ms, so the ItemFilter was the only thing taking time.

I added a new thing to JEI's API so you can get the filtered item list, and used that in this PR instead of the new ItemFilter.

I also added Mantle to your gradle since it was required in order to build and test the project. It's on the same maven as JEI but the deobfCompile line is a bit different.