跳到正文

Thaumic Speedup

作者:Rongmario

Speeds up Thaumcraft's loading process and optimizes internals.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Thaumic Speedup

A lightweight, drop-in performance mod for Thaumcraft 6 on Minecraft 1.12.2. It targets the slow, allocation-heavy paths in Thaumcraft’s aspect registration system. It scales badly in large modpacks with thousands of recipes and items.

What it does

  • Reverse recipe index for aspect generation
    • Thaumcraft derives an item’s aspects by scanning the entire crafting registry once per item: O(items * recipes) and this does not scale well at all.
    • Thaumic Speedup builds an output stack -> recipes index so each subsequent lookup is a fetch instead of a full-registry walk. The index is built only for the startup pass and dropped afterward, rebuilding lazily if needed at runtime.
  • Allocation-free item identity hashing
    • Thaumcraft’s generateUniqueItemstackId copies the ItemStack, serializes it to NBT, stringifies it, and hashes it on every aspect lookup.
    • Thaumic Speedup replaces this with a direct hash of the item id + item damage (+ NBT when need be), allocating a lot less.
  • Cleaner deprecated API routing
    • Routes Thaumcraft’s deprecated static registerObjectTag calls through a singleton event proxy.

常见问题

Thaumic Speedup 支持哪些 Minecraft 版本?

Thaumic Speedup 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Thaumic Speedup 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Rongmario 的其他作品

查看全部 →