tuningfork icon indicating copy to clipboard operation
tuningfork copied to clipboard

AndroidPerformanceTuner_gen is slowing Unity Editor script compile times

Open toxikman opened this issue 1 year ago • 0 comments

I have my own Assembly for our C# scripts in Unity (asmdef) and so when I make a change to my source files, Unity should only have to rebuild my Assembly. However, in Unity 2022.3 LTS they added more compiler transparency, so you can see that it's compiling APT_gen's assembly as well, every time. This is because the APT code is writing to DevTuningfork.cs even though there's no change in the file, so Unity detects this and rebuilds the assembly. This causes a slowdown in workflow for programmers where the project contains the APT system. Please add code so that APT doesn't write DevTuningfork.cs when there's no changes detected, or better yet, don't run APT rebuilding code at all unless the source files it cares about are modified (e.g. ones with Enums).

toxikman avatar Jun 08 '23 21:06 toxikman