转载便捷功能Mod v1.0.0

Faster Exit

Faster Exit With a heavy mod list, clicking Exit can freeze the game window for tens of seconds before closing. On quit, the game removes every Harmony patch one by one and recompiles each patched met

皮皮山上的咕咕⑨投稿:Nico更新于 2026/11/174,931 订阅92 收藏4,059 次浏览

原始发布页 ↗

请从原始页面下载。也可以通过网盘下载。

前置依赖

当前包的 manifest.xml 未声明前置 Mod。

Faster Exit

With a heavy mod list, clicking Exit can freeze the game window for tens of seconds before closing. On quit, the game removes every Harmony patch one by one and recompiles each patched method after every single removal — wasted work when the process is about to terminate anyway.

This mod skips patch removal only while the game is quitting, leaving the rest of the shutdown intact. Tested with over 3,000 active patches: mod shutdown dropped from ~24 seconds to under 1 second.

  • Normal cleanup preserved: every mod's OnDisable callback (saving mod settings, unsubscribing events, freeing objects) runs as usual; only patch removal by the loader and individual mods is skipped.

  • Quit only: toggling mods on or off from the in-game Mods screen still installs and removes patches normally.

  • Slow-shutdown log: any mod whose OnDisable itself takes over 100 ms on quit is logged with its elapsed time, making remaining bottlenecks easy to spot.

  • Plug and play: does not touch the mod loader, built-in game patches, or save files. No settings, no load-order requirements, safe to add or remove anytime.

Notes

  • Remaining exit time: the vanilla 1-second analytics wait (when analytics consent is enabled), Unity's own ~1-second engine shutdown, and non-unpatch work inside mods' OnDisable callbacks (such as exit-save mods writing files) still run normally.

  • Compatibility: skipping unpatching keeps loaded patches in memory until the process exits. Vanilla does not save on quit and no issues occurred in testing, but if a mod logs shutdown errors or fails to save its own config

评论

0

正在加载评论…