X2CommunityCore / X2ModBuildCommon

An improved XCOM 2 mod build system
MIT License
5 stars 5 forks source link

Unchanged files/outputs are deleted from staging and then generated/copied back in #40

Open robojumper opened 3 years ago

robojumper commented 3 years ago

Examples:

  1. Localization files are reverted to their UTF-8 versions in staging and then converted to UTF-16 again (lwotc, ~3 seconds, also see #34)
  2. Cooking outputs and IncludeMissingUncooked packages are removed from staging and then copied back (CovertInfiltration, ~25MB)
  3. ModShaderCache is deleted and added back from the BuildCache
  4. Compiled script packages are removed from staging and then copied back in (lwotc, ~13MB)

Other incremental issues are going to have a far bigger impact for now because files aren't egregiously large, but especially when projects with large sets of assets like lwotc start cooking packages, 2. could add up and cause dozens of megabytes to be copied every single run.

This may require a move away from a full robocopy /mir call towards a treatment of individual folders in the project.

Xymanek commented 3 years ago

Some relevant notes: