Skip to content

Performance issue due to repeated file access #28

@Luke100000

Description

@Luke100000

While in inventory, rapid Files.exists() calls drops FPS to 3.

InvMove.onInputUpdate() calls allowMovementInScreen() calls InvMoveForgeClient$1.modidFromClass(), and from there it seems like an uncached resource/class lookup. Maybe wrap modidFromClass into a cache?

I marked the affected method: https://spark.lucko.me/xIkj5lSwQ7?hl=65

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions