Поиск по STEAMB

Игры и программы по онлайну, скины по объёму продаж

Ничего не найдено

Попробуйте другое название или переключите категорию.

Меню

Интерфейс

Fix Inventory Tooltip lag

Положительные голоса96%3 784 голосов игроков
Подписчики747,9 тыс.747 913 в Steam Workshop
Размер файла83,64 КБЗагрузка через Steam
Обновление автора9 янв. 2023 г.Дата обновления материала
Изображение 1 из 1
Установить через Steam

О материале

«Fix Inventory Tooltip lag» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.

Описание автора

Fix Inventory Tooltip lag

This mod fixes a performance issue in the game that causes it to freeze up for a period of time, most commonly whenever you rip up clothing.

The problem becomes exponentially worse with the more clothing item mods you have, hence why it's the primary culprit.

The code is a classic example of "accidentally quadratic" If you care about the details, read on. If not, just download it.

What the vanilla game does that causes this problem

The game wants to show you a tooltip of the top 10 items that are valid for a given recipe, so it:

  1. Builds a complete list of all valid items, in no particular order.

  2. Sorts this complete list to move all items you actually have to the top - O(n) complexity.

  3. Removes any items that are considered duplicates by virtue of being applicable to different slots (e.g. Left/right handed wristwatch) - O(n^2) complexity!

  4. Renders the top 10 items of the list, ignoring anything else.

This is wasteful because it processes the full list of items, even though we only care about the top 10.

What this mod makes it do

  1. We build a complete list of valid items, but any items that exist in your inventory are sent to the start of the list, at the point of insertion.

  2. The list is truncated to the first 10 items and only these are sorted. We store the original length of the list for later - O(1) complexity.

  3. Deduplication occurs as in vanilla, but, again, the list is now only 10 items long - O(1) complexity.

  4. We render the list again. If there were more than 10 items, we ensure that the "and X more" text is computed correctly from the pre-truncation list size.

Workshop ID: 2915430406 Mod ID: FixTooltipLag

Оригинал в Steam Workshop

Как установить и запустить

Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.

Настройки cookies

Вы можете изменить выбор в любой момент. Отказ от аналитики не ограничивает доступ к сайту.

Технологии, провайдеры и сроки хранения