Texture loading/stitching takes a very long time

Topics regarding PureBDcraft, the HD cartoony resourcepack for Minecraft Java Edition.
Post Reply 
User avatar
12 Posts
 x 1

Post 25 Jan 2021, 07:39

Hello,

First of all, thanks for an awesome texture pack! I've been using it for years, and it's basically the "normal" look of Minecraft for me nowadays :)

I have one concern, though, that the texture stitching phase takes a very long time.

The 128x version of PureBDCraft 7 minutes to stitch with my latest modpack, the Stacia Expert 1.8.2. The game is completely unresponsive for the entire time. This is on MC 1.16.4, and a relatively beefy computer (AMD 5600X, 32GB of DDR3200 memory, a fast PCIE4 NVME drive)

The modpack has >200 mods in it, and without the texture pack the it loads in about one minute. Reasonable, considering the amount of mods. However the seven minutes stitching time is on top of that - the total game load time from launcher is thus roughly 8 minutes.

Here you go if you want to try it yourself:
https://www.curseforge.com/minecraft/mo ... cia-expert + the latest PureBDCraft for 1.16. (Yes, many of the mods are not supported with this texture pack, but that's a topic for an another post :))

So - would it be possible to make this faster somehow? Or perhaps add a caching mechanism that will store the texture atlas to disk after stitching it for the first time, and just load it from there on subsequent startups?

Also, any insight why it takes so long and which things consumes so much time would be really appreciated!

Thank you in advance"
If you like our work please consider becoming a Supporter and get an ad-free experience.
User avatar
BDcraft Web Admin
6618 Posts
 x 437

Post 25 Jan 2021, 10:37

It's always taken a long time once you add mods and HD textures in to the game. You may be able to reduce it somewhat if you find appropriate Java command switches that could possibly speed bits up, but I can't help you there.

I assume caching is probably impossible (or at least very difficult) as some mods don't load their items/blocks/entities in the same order every time, so then their references to textures won't be in the same order either.

Maybe it is possible, but you would need to talk to people who have more knowledge of the the inner workings of Minecraft, like Forge, OptiFine, or Fabric devs to see what they say.
Profile pic by TsaoShin: https://www.deviantart.com/tsaoshin
User avatar
12 Posts
 x 1

Post 25 Jan 2021, 12:45

HanFox wrote:
25 Jan 2021, 10:37
Maybe it is possible, but you would need to talk to people who have more knowledge of the the inner workings of Minecraft, like Forge, OptiFine, or Fabric devs to see what they say.
Thanks for the quick reply!

Now, I'm not unfamiliar with Java, so I imagine there could be a possibility to build and store a "mapping" for the mods to reference the stitched atlas so that it could just be loaded up at startup. Unfortunately nowadays I just don't have the time to start figuring this out myself, so I thought to ask someone who knows how the texture stuff works and already has a dev environment up and running.

I'll see if Optifine or Fabric people have something to say. I did ask about this on a Forge forum already, but they just told me to to code it up myself...
Post Reply