• 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
3
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

1 Reply

· Add your reply
  • Sort: 
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 1
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.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

207 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

Related Questions

Alternative to EditorWindow.OnDisable to run before compiling 2 Answers

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

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

Getting an Error 3 Answers

How to get rid of green camera feed on AR camera? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges