blueskythlikesclouds / SkythTools

A collection of tools for modern Sonic the Hedgehog games
38 stars 11 forks source link

Restoring converted streaming textures #11

Open LMauricius opened 9 months ago

LMauricius commented 9 months ago

I am working on a texture mod for Sonic Frontiers. To edit most textures I needed to convert them using NeedleTextureStreamingPackage. However, after re-packing the edited textures into a mod, the game runs several times slower than before. While I haven't exhausted all other possibilities, due to longer load times I was wondering if there is a possibility that processing the textures with NeedleTextureStreamingPackage causes them all to load into memory on gameplay start, instead of being streamed dynamically. The mod was supposed to reduce VRAM usage, but it doesn't, which is another clue in favor of my hypothesis. Is there a way to re-enable the streaming for textures after editing them? NeedleTextureStreamingPackage seems to be a one-way conversion tool. Thanks in advance.

blueskythlikesclouds commented 9 months ago

I made this tool earlier this year for this purpose but apparently, the mod loader is not able to load .ntsp files from mods. You'll have to pester HE2ML's developer to support this.

If you want to try it regardless I can make a release for that tool and explain how it can be used.

LMauricius commented 9 months ago

Considering I only need to edit existing textures, does it matter that the mod loader can't load ntsp files? I assume the ntsp file data does not need to be edited, unless it contains texture resolution data. Other than that, I only need to restore the dds files to their previous format. If you would be so kind to make a release of the ntspMaker it would be awesome.

blueskythlikesclouds commented 9 months ago

.ntsp files contain the actual texture data. .dds files contained in .pac files contain just the header of the original .dds file.

LMauricius commented 9 months ago

Aha, understood, thanks.