Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
and put the line that says
table.insert(itemDataList, itemData)
inside of a check for whether the item is available like so:
if itemData.available then
table.insert(itemDataList, itemData)
end
You make the following sort completely unnecessary by doing so, and even with it running, the stutter is gone, and you'll only see the items you actually *have* in the tooltip, up to the "and x more" threshold.
TL;DR: only add *available* items to the list, and remove the sort that comes right after or make it whatever you like, you're dealing with a reasonable number of elements now either way.
I haven't tested standing on a mountain of clothing, but I could see further optimization being to limit the size of itemData list as jtgibson suggested below in addition to this fix, if it proves necessary at all.
@RandomSithLord: That is literally not possible with this mod. Vanilla generates a list of possible ingredients for a recipe when you hover over it in the context menu, including loading the icons of the first ten items it can find. When users have a large list of mods installed (not specific to Authentic Z), Java might unload some of these textures, and so it can take a long time to process the operation. This mod removes that portion of the code. If you're experiencing additional lag, then you're either using a "bad" mod which negligently overwrites that same file/function (and reverts it to vanilla lag), or you're mistaking some other lag cause.
(I rarely carry bandages on me so I often resort to ripping my own clothing.)
Recipes ? but in description says it for the rip sheets/ craft sheet rope context menu, so i thought it won't appear for others recipes.
That's by design. It's how the context menu stutters when the 800+ clothing items show up when you have clothing mods.
This mod just removes the required items for the recipes in the context menu.
If you try to clean the bandage or dissemble items, it won't show the item you need to use like the hammer. but you can still see the item you will get after dissemble and others.