Universal Tweaks

Universal Tweaks

871k Downloads

[Mod Enhancement] Roost/ContentTweaker Load Time Improvement

jchung01 opened this issue ยท 0 comments

commented

ContentTweaker (CT) allows adding custom chickens to the game and Roost uses supplied textures for these custom chickens to render its blocks/items. Unfortunately, CT registers the chickens after resources have already been loaded, so Roost forces a resource refresh during loading, increasing load time noticeably. PR #95 fixes this issue by patching CT to start registering chickens in preInit and finish setting them up in init and patching Roost to recognize the custom textures in its check to reload resources.

Some configuration is required by the end user/modpack maker for this tweak to work, which is detailed further in the PR.

As anecdotal evidence, loading the modpack Meatballcraft for me with this tweak, properly configured, cuts down the load time from ~21 minutes to ~14 minutes. This is on a relatively old machine (i7-2600, GTX 960, DDR3-1333 16GB RAM), so load time improvements will be smaller for higher-end machines, but this tweak undoubtedly cuts out load time caused by a 2nd load of all MC/mod resources.
The pack has been using this mod for a few patches now, and it's a great mod, so I figured this PR is appropriate as Roost/CT shouldn't be receiving any updates for 1.12 so the tweak should be fairly stable.