[DEPRICATED - MERGED] Companion Dogs - Performance Patch [B42]
О материале
«[DEPRICATED - MERGED] Companion Dogs - Performance Patch [B42]» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
THIS MOD IS NOT DEPRICATED AND HAS BEEN MERGED WITH THE MAIN COMPANION DOGS MOD IN THE MOST RECENT UPDATE SO IT WILL NO LONGER BE UPDATED AS OF 2026/08/18
Companion Dogs - Performance Patch [B42]
Unofficial performance add-on for Companion Dogs [ALPHA].
This mod reduces traversal stutter caused by repeated building classification inside Companion Dogs' LoadChunk processing.
Requirements
-
Project Zomboid Build 42
-
Companion Dogs [ALPHA]
Companion Dogs Workshop ID: 3740052292 Companion Dogs Mod ID: CompanionDogs
What the patch does
Companion Dogs classifies buildings while chunks are loaded. A single building can occupy many squares, which can cause the same static building checks to be performed repeatedly during one chunk load.
This add-on wraps the existing Companion Dogs building classifiers and caches their boolean result by stable building bounds.
It currently caches the base classifiers for:
-
Houses
-
Police buildings
-
Pet/vet buildings
-
Farm buildings
What it does NOT change
-
Dog spawn chances
-
Breed selection
-
Dog behavior or AI
-
Taming, bonding, breeding, skills, or genetics
-
Persistence
-
Companion Dogs assets
The original Companion Dogs LoadChunk callback and spawning logic remain in place.
Performance testing
In the test environment that led to this patch, Companion Dogs' LoadChunk callback produced hundreds of calls above 10 ms, with repeated stalls in the 250-330 ms range while driving through populated areas.
With this add-on enabled, the same instrumented route produced zero Companion Dogs LoadChunk callback warnings at or above 10 ms, while driving remained smooth.
Results will vary by save, hardware, map area, and mod list.
Compatibility
Tested: Project Zomboid 42.20.2 with Companion Dogs [ALPHA].
The patch performs a runtime compatibility check before wrapping anything. If the expected Companion Dogs building classifiers are missing after a future update, the patch disables itself and logs the reason instead of guessing.
Multiplayer: The patch does not alter networking, but co-op and dedicated-server behavior has not yet been independently validated for this add-on.
Installation
Subscribe to Companion Dogs [ALPHA], subscribe to this patch, and enable both in the main-menu Mods screen.
Companion Dogs should load before this patch. The dependency metadata handles that automatically.
Because Companion Dogs uses custom animals, follow the base mod author's recommendation and fully restart Project Zomboid after enabling the mods before loading a save.
Credits and permissions
Companion Dogs [ALPHA] is created by Bjorn. This is an independent, unofficial performance add-on and is not affiliated with or endorsed by the original author.
This Workshop item contains no Companion Dogs source code, models, textures, animations, sounds, or other assets. It interacts only with runtime tables/functions exposed by the installed Companion Dogs mod.
Thanks to the Companion Dogs author for the excellent companion-dog mod that made this optimization worth pursuing.
Version
1.0.0
- Initial Workshop release.
- Runtime caching for four base building classifiers.
- Compatibility preflight and fail-safe disable behavior.
Workshop ID: 3781402232 Mod ID: CompanionDogsPerformancePatch
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.