饥荒联机版

饥荒联机版

Extended Map Icons (FIXED)
正在显示第 1 - 2 项,共 2 项条目
更新于:9 月 21 日 上午 10:15

This update focuses on performance and correctness improvements for map icons.

- Minimap textures are now cached per entity, avoiding redundant SetIcon calls when the icon hasn’t changed.
- Prefab registration runs through a shared deduplicated table, so overlapping categories don’t add multiple AddPrefabPostInit callbacks.
- Mod configuration reads are memoized, removing repeated GetModConfigData lookups.
- The mapiconhandler component keeps the cached icon state in sync with helper entities and clears it on removal to prevent stale references.

更新于:9 月 21 日 上午 7:33

- Reworked `mapiconhandler` to parent helper entities to their owners instead of teleporting them every frame, eliminating the post-691071 flicker and removing the biggest source of map lag.
- Respects existing `MiniMapEntity` components when the base game already provides icons to avoid duplicates and cache conflicts.
- Automatically disables icons while objects are in limbo (picked up, carried, or hidden) and reenables them on drop for accurate tracking.
- Keeps minimap caching disabled for custom icons to prevent stale positions after recent engine changes.