RecipePerformance Fix / 配方Lag修正
[備註 / Note]
本模組由 AI 協助製作。
This module was created with the assistance of AI.
【中文說明】
簡介
這個模組主要為了解決遊戲中切換不同配方分頁(例如:武器、工具)時,總是會「卡一下」的掉幀問題。
- 原理:原本遊戲是採用「每次切換就刪除舊節點、重新生成新節點」的暴力方式。本模組改用 預載快取機制 (Caching),將配方節點預生成並隱藏,切換時僅切換顯示狀態。
- 改善重點:讓介面反應更加順暢,切換配方不再有微頓感;尤其是當你有使用在地化(翻譯)模組時,效果會更加明顯。
覆蓋函數清單 (Overwritten Functions)
【相容性】
本模組覆蓋了原腳本 Interface.gd 中的以下函數。請注意,若其他模組也使用了這些函數,將會產生不相容的問題:
UpdateProximityInitializeRecipes
【English Description】
Introduction
This module fixes the stuttering/lag issues when switching between different recipe categories (e.g., Weapon) in the crafting menu.
- How it works: Replaces the "clear-and-recreate" logic with a Node Caching System. Recipes are instantiated once and then toggled between visible/hidden.
- Benefit: Providing a much smoother UI experience—especially noticeable when using localization (translation) mods.
Overwritten Functions
【Compatibility】
This module overwrites the following functions in Interface.gd. Please be aware that this mod will be incompatible with any other mods that also modify these functions:
UpdateProximityInitializeRecipes
Comments

