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 /
This question was closed Dec 10, 2015 at 09:46 AM by Mr_Edward for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by Mr_Edward · Dec 09, 2015 at 02:20 PM · editorfreezeselectionslowgarbage-collection

Unity is really slow when selecting.

Hi everyone!

The Problem:

I've been working on a game for several years now, and unity seems like a really stable and well build engine. - I've run into very few errors that I couldn't solve, some time ago (Probably about a month) Unity started to get pretty slow. The editor runs smoothly enough, and I achieve normal framerates in my game, but whenever I select something in the editor, like a object in the scene or hierarchy, A asset in the Project tab, or opens up the Input settings everything freezes for about 5 seconds.

This is obviously really annoying, and I really hope that someone knows how to fix it. I have found no solutions on the internet though, and I also haven't found any myself. I have found though, from profiling the editor that "EditorApplication.Internal_CallUpdateFunctions" is what takes up 99,7 percent of the performance in that frame. This is categorized as garbage collection by unity.

It's worth noting that this happens in any scene in that project, even an empty one. Also note that this only happens in this project.

What I've tried

  • Copy the project to a different directory

  • Reimport all assets

  • Reorganize both the hierarchy and project window (Not likely to fix the problem, but it had to be done anyway)

  • Close all tabs except the project tab

  • Advance profile the editor to see what specific functions are called (Advance profiling doesn't even pick up the 5 second freeze)

I really hope that my issue can be resolved. None the less Thank you. :)

Edit:

I forgot to mention, that if I select an object, then deselect it, and then select it again the selection happens immediately.

Comment
Add comment · Show 3
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 Bunny83 · Dec 09, 2015 at 03:08 PM 1
Share

Does your project contain any editor scripts which might cause this slowdown? How many objects are in the scene and how many assets are in the project (just the order of magnitude)?

Internal_CallUpdateFunctions sounds like you have a poorly written editor script which does heavy stuff inside the update delegate. The 5 second freeze might be related to heavy stuff inside a OnSelectionChanged / OnHierachyChanged callbacks.

avatar image Mr_Edward Bunny83 · Dec 10, 2015 at 08:12 AM 0
Share

Thank you very much for the fast respond on your end, and sorry for the late response on my end.

From further research it appears that you are right, and the problem, at least by the looks of things, are related to editor scripts; If there are any compiler errors the selection works fine.

I do have a lot of editor scripts, since I write one for almost every script to keep the inspector GUI nice and user friendly, so it may take a while to locate the exact problem.

Anyways: Thank you for pointing me in the right direction :)

avatar image Wrymnn Mr_Edward · Jan 27, 2016 at 06:54 PM 0
Share

Hi, do you know where the problem was? I too am selecting from scene where I have many objects, and it makes lag for about 10+ seconds....

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

33 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

Related Questions

Unity Editor freezes after exiting playmode 2 Answers

How do I set the current script as the selection in the project view? 1 Answer

Editor crashes on play 0 Answers

Spline Editor: Maintain object selection and object attachments 0 Answers

How can I create a editor button that can not be selected 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