If it’s true that the domain reloading is only necessary to reflect changes to exposed script variables in the inspector or editor windows, then an idea would be to provide a sort of “Refresh” or “Reload Domain” button that’s easily visible and pronounced, that when clicked, Reloads the Domain (make it show a slick animating progress popup modal right away and dim the editor behind it)… That way (hopefully) coders can make quick simple script changes, hit Play, and see results without needing to reload the domain.
If you do make a script change that affects an exposed or serialized variable, then you can reload the domain when you want to instead of being always forced to wait.
Obviously still not ideal, especially for new users learning Unity who won’t know that they have to click “Reload Domain” in order to see the new property they want to show up in the inspector, but…if this could be provided as an advanced option (since it’s for advanced users) I feel this could go at least some way towards speeding up the iteration process.
Switching the editor platform causes script recompilation and (unlike Unity 2019) it doesn’t wait until the compilation end but continue to go down via function. Right after the platform switch, I have Addressable build (called when editorPlatformSwitched event is fired) and it always fails because Editor.isCompiling is true.
I can’t use semaphores, because this causes deadlock because Unity is still semi-async. I can’t just subscribe to assemblyCompilationFinished event, because the function ends before this event will be fired.
This change causes a very painful performance regression across a wide range of projects, both simple and complex. I’m seeing on average 15 second delays every time a minor script change is made.
15s of waiting because I added a carriage return to a game script.
It raises questions concerning Unity’s internal QA process and how such a huge hit to productivity was introduced into the product. Does Unity test releases with commercial grade solutions of sufficient complexity?
More concerning is that there has been no public acknowledgement that this issue is serious and that it is being given proper attention. Maybe it is being worked on and we will learn the outcome in this thread.
I appreciate Unity. And I appreciate the effort of Unity employees, including @jonas-echterhoff_1 . But I don’t appreciate that this serious performance regression has been known since December 2020 and eight months later it still exists with no discussed timeline for resolution.
For us it gets worse as I keep Unity open for more time, up to minutes of waiting. So I just restart the editor every few hours to make the script recompilation faster.
I don’t think it’s the same issue. There are no unresponsive stalls here – the Unity editor assembly load/recompilation process was rewritten and it consequently takes longer in Unity 2020.2 and 2021.x.
Hi @jonas-echterhoff_1 , I migrated recently from 2019 lts to 2021lts editor, but now I’m having this issue on Android builds, where the build freezes at a random file, during the CopyFiles step of the Incremental Build. I tried to change the folder’s permissions, reinstall everything, but it is still happening every time.
Hi, is it freeze on operation something like “Copy from Library/Android to something blablabla”? If yes, I have the same problem with the 2021 version: near the end of the build process, it’s like “stuck” for no reason.
However, after waiting for around 30 minutes (on a computer with Ryzen 7 3800X, 32GB of RAM, and Samsung 980 Pro SSD and for the empty URP project), the process completes with success and the build worked as expected. For the next builds, this problem does not exist anymore.
Likely this is a problem with the incremental build system.
Hi there, we recently upgraded our Unity project from version 2020.3.36f1 to version 2021.3.11f1, and one of the things we’ve found recently is that the build.log file looks significantly different from how it used to. Namely, after an “Assembly Updater Post Process Assets” line in the logs, we used to get information about each of these .dll files compiling:
These would then appear for us over in GitLab in our CI/CD pipeline console (which uses fastlane and a u3d plugin) in a format that would let us quickly and easily identify compilation errors:
Since upgrading, we no longer get these file-by-file compilation logs in the console, and while we initially thought this was due to the fastlane plugin we’re using we took a look at the build.log file and it appears these aren’t getting logged in the raw output either (or, if they are, they’re in a different format):
As a result, we’re currently in a state where, if there are compilation errors, these don’t appear for us in our CI/CD pipeline and we instead need to grab the raw ouput/build.log file to search for errors manually.
What we’re currently hoping to find out is whether the changes to the log files and standard output during builds is due to these changes to the script compilation pipeline, due to some other change, or whether we’ve most likely got some quirk in our project’s setup. If the former, we can perhaps look into adjusting our CI/CD pipeline to accommodate these changes.
Many thanks for any help or advice anyone can offer with this.
@jonas-echterhoff_1 is ithis still working on Unity 2022.3.0 ? because our android I2LCPP build times are being EXTREMELY slow (30-40 min) and with the same machine iOS I2LCPP builds take less than 5 min…
Whats going on?