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 /
avatar image
0
Question by IlBuono · Jan 10, 2017 at 09:11 AM · editorfreezefreezingcompiling

Unity freezes temporarily when recompiling/refreshing scripts

I have this annoying "problem" that whenever I edit a script, save the changes and then go back to Unity, the editor freezes for about 5 seconds. I assume it's the automatic recompiling but I don't think my computer is so bad that the whole editor should freeze. My CPU is a quad-core AMD 955 @ 3.2GHz and I have both Unity and the projects on an SSD. On other IDEs like Android Studio and Webstorm I never get any kind of freeze, could something else be the problem of it? Does anybody else experience it?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Adam-Mechtley · Jan 10, 2017 at 09:15 AM

In the editor, there is a little animated icon in the lower right that indicates it is active but compiling. Is that actually animating or is it frozen?

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 IlBuono · Jan 13, 2017 at 11:16 PM 0
Share

Sorry for not replying I didn't have access to the computer giving the problem this week, the icon spins for around 3-4 seconds and the editor responds and then freezes for 3-4 more seconds with the whole editor.

avatar image
0

Answer by AtticusMarkane · Jan 14, 2017 at 04:59 AM

This can occur in projects with a large code-base. Obviously your computer resources effect compile time as well but even a computer with good specs can take a while to compile a large project. I am currently working on game that takes my Mac about 10-15 seconds to compile, with ~5 seconds of that time being the editor "frozen". When the editor freezes like this due to a compile you should still see the animated "compile" spinner in the bottom right corner, it is just frozen like the rest of the editor.

Something you can do to help reduce this is convert any framework code to compiled libraries (dlls). Since your code is already compiled in a dll, Unity shouldn't recompile it.

If your project isn't that big then I am not sure what else this could be.

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

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

7 People are following this question.

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

Related Questions

Unity was freezing, and now it won't open because of this error. 3 Answers

Profiler Causing Unity Editor to Freeze 0 Answers

The script is working but why when I try to change stuff in inspector the game is freezing ? 1 Answer

Editor crashes on play 0 Answers

Can anyone manage to slice at 8192x4096 texture into 64x64 sprites 2 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