Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
5
Question by neshius108 · May 06, 2019 at 06:19 AM · editorperformance optimizationcompileassemblies

Reloading Assemblies is extremely slow. How to fix that?

I once for all decided to do something about my slow compile time (around 14 seconds).

So, after lots of research, I found a way to benchmark the issue: https://gist.githubusercontent.com/filod/ba1e1522c1821cd24ca1a0c9090eb440/raw/32130f055da95f6ee4cf647aae4a35ea180eeea7/AsmdefDebug.cs

After that, I moved my imported asset folders into the "Standard Assets", which helped slightly decreasing the compile time but the compilation still takes around 8s. I tried removing all the unneeded "[InitializeOnLoad]" and removed some built-in packages from the Package Manager, still the same.

alt text

How do I decrease the Assembly Reload Time?

It takes 7.6s seconds to reload the assemblies after having added/removed a character in a script. That shouldn't happen in my opinion... What else can I do?

image-12.png (14.6 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

10 Replies

· Add your reply
  • Sort: 
avatar image
8

Answer by crare · Oct 10, 2021 at 07:55 PM

Restarting Unity once in a while seems to help. Unity seems to bog down when it's open for multiple days. This maybe a issue with compiling files or something else buggy in your own code or the Engine. It may also be issue with memory use. Restarting your PC once a day anyway should help in most cases.


Good rule of thumb with any software related: Have you tried turning it off and on again?


If these won't work, only then I would suggest re-importing all your assets, it might break something so I wouldn't do that as a first option.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
3

Answer by Waffle1434 · Jan 13 at 05:50 PM

Restarting Unity Editor fixed this for me. Very silly. I went from a 40 seconds compile/reload script assembly time, to <2s.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Itharen · Jan 27 at 02:37 AM 0
Share

exact same here

avatar image
2

Answer by Borjka · Jul 07, 2021 at 11:47 AM

Got same in 2021.1.1f1 it takes ages to do any changes in scripts or start game, while in UE or CORE it takes less than 1 second, looking forward to switching to UE

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by macagu · Jul 13, 2019 at 08:05 PM

Try REIMPORT ALL, and then restart Unity. I was experimenting an Assembly Reload Time of 8 seconds, and now it went down to 2 seconds. I guess sometimes, somehow, something gets wrongly catched. I'm using Unity 2019.1.8f1

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image neshius108 · Jul 14, 2019 at 03:42 AM 2
Share

I did some research and ended up writing a post about it with my findings: https://gamejolt.com/games/talesofkulplex/313193/devlog/tales-of-kulplex-devlog-6-attempting-to-decrease-compile-times-she9y7qf

But basically, you gotta split the project into assemblies and try to reduce the number of files in the project.

avatar image wheee09 · Dec 05, 2019 at 09:56 AM 0
Share

I second the restarting of Unity. I tend to keep it open for many hours to many days at a time.

I didn't have to reimport all - but after restarting I went from 4.8s to 1.6s. I'm on a beast of machine with 64 gb of ram and 8 cores and none of it was being stressed in the slightest. So there's something else that's causing Unity to get slower and slower over time.,I noticed that if I keep Unity open for awhile (ie. many hours to days) it will get slower and slower. I restarted Unity and my Assembly Reload Time went from 4.5s down to 1.6s.

I'm not sure why tho... it's not memory tho - I'm on a beast of a machine with 64gb of ram and it wasn't even using half of that and 8 cores.

Breaking up your assemblies should also work but it can be a lot of work as you may need to refactor a crap load of stuff so that the dependencies make sense.

avatar image
0

Answer by DryreL · Jun 12, 2021 at 07:16 PM

I have same problem (Unity 2021.1.7f1)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

216 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Game gets slower for certain resolutions in Unity Editor. What could be possible fix? 0 Answers

Alternative to EditorWindow.OnDisable to run before compiling 2 Answers

Script work perfectly in Editor but not in build. 0 Answers

projects corrupted: Copying assembly.....UnityEngine.TestRunner.dll' failed 2 Answers

Built Game different than the game in the editor - What to do? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges