In my mod, the player has a grid-based inventory, with icons representing each item they have. When the amount of items in the inventory is fairly low, this works fine. However, when the inventory has a lot of items it (and thus a lot of icons to draw), the game slows down considerably.
Is...