Lighter Inventory

Updated 19 hours ago

Join our Discord: discord.gg/haSwxPa9GU to report bugs, request features or other mods, or give feedback.


← All mods in Inventory and QoL

Lighter Inventory

Switch: F1 → 0 - Sub-mods → Lighter Inventory (on by default).

An open inventory redraws every slot of every grid each frame, though hardly anything changes. Equipment Slots does the same for its panel and measures its layout again, and the recipe panel writes its texts and counts the ingredients again (with Craft From Chests: in all nearby chests). Together that is most of what an open inventory costs. Opening the inventory or a chest also makes the whole recipe list anew and draws every recipe in it, also the ones scrolled out of view. With free building, where every recipe in the game is listed (449 in the Digi Modpack), each opening was a hitch of a quarter of a second.

Features

  • Items and the recipe panel are redrawn at once when something changes: an item moved, used up or picked up, dragging starts or ends, or another recipe is selected.
  • Otherwise 10 times a second, so a durability bar still moves. While crafting the recipe panel runs every frame.
  • Equipment Slots' character preview keeps moving smoothly; it is only dressed again at those moments.
  • With a gamepad or touch the inventory stays at every frame, as those select through it.
  • The recipe list is kept when nothing in it changed (the same recipes, each as craftable as before), and only the recipes in view (and a few around them) are drawn; scrolling draws the rest as they come into view.

Performance

Saves time only while the inventory is open; a few small checks per frame then. Opening it with a long recipe list: about half the time (free building, 449 recipes: 250 ms -> about 120 ms).

Settings (F1)

In F1 these are under Lighter Inventory - ..., below the switches.

General

Setting Default What it does
Redraw at least every (ms) 100 How often items are redrawn when nothing changed. Anything that changes is redrawn at once. 0 = every frame, like normal. (range 0 to 500)