Skip to content

netpyoung/NF.Tool.UnityCompileCache

Repository files navigation

NF.Tool.UnityCompileCache

This utility has been developed to streamline the execution of cache commands, aiming to reduce the lengthy build times associated with IL2CPP compilation on Windows.

Check Release Page

Prerequirement

  • Install ccache / sccache
  • Adding a directory to the PATH environment variable

GUI

UnityCompileCacheGUI_Winform

⚠️ This tool is designed based on C:\Program Files\Unity\Hub and requires administrative privileges to modify Clang files.

  • apply: Backs up the original clang.exe as clang.exe.backup, then replaces clang.exe with the custom UnityCompileCache wrapper.
  • revert: Removes the wrapper and restores clang.exe.backup back to the original clang.exe.

Require to run (GUI)

Ref

Log

Unity: Unity6000.0.60f1
  - Template: Universal 3D
  - Target: Android
CPU: AMD Ryzen 5700G
SSD: SHGP31-2000GM

First Build
Build completed with a result of 'Succeeded' in 385 seconds (384883 ms)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

Clean Build
Build completed with a result of 'Succeeded' in 186 seconds (185795 ms)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

Clean Build
Build completed with a result of 'Succeeded' in 138 seconds (137736 ms)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

Clean Build + Apply ccache
Build completed with a result of 'Succeeded' in 75 seconds (75499 ms)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

Clean Build + Apply ccache
Build completed with a result of 'Succeeded' in 74 seconds (74274 ms)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()