Skip to content

derFunk/unity3d-lzma-speedup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WINDOWS UNITY3D LZMA SPEEDUP

How to use

  1. Rename your C:\Program Files (x86)\Unity\Editor\Data\Tools\lzma.exe to lzma_real.exe. You can also make a separate backup to a safe place if you wish.
  2. Copy lzma.exe from the "windows binaries" directory (or your custom build from sources) into your Unity3D tools folder
  3. -Done-

A log file will be written to lzma_call_cli_arguments_log.txt within the Tools directory where you can have a look at the command line parameters which Unity3D used to call lzma.exe. You can also find the elapsed time of the compression there.

How does it work?

Whenever Unity3D uses LZMA compression, the "fake" lzma.exe from this Speedup Project will substitute Unity3Ds max-compression parameters (for e.g. -fb372) to those which provide fastest compression (-a0 -d0 -mt4 -fb5 -mc0 -lc0 -pb0 -mfbt2).

This interceptor can speed up compressing the build by a factor of 4!

---> Important: Speed don't come for free: Compression rate will be worst, only use it in your local development environment! <---

Unity3D Versions

Tested with Unity 3.4 and Unity 3.5 on Windows

News

Follow me on Twitter @derFunk! Let me know if this little project helped you saving time, and if you experienced even better speedup factors.

About

Speed up your local Unity 3D builds by a factor of 4!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages