Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Brogan89 · Dec 17, 2017 at 08:57 PM · performanceinspectorprofileronguieditor window

InspectorWindow.DrawEditors high CPU in Editor.

I have a script that is causing a huge amount of CPU usage in editor.


I've spent fair bit of time trying to diagnose what is causing this issue. I know it is coming from a custom script because it only happens when I have this particular gameObject selected in the scene, and the gameObject only has one script on it.


The script it a weather controller script in run time, but it can also be edited in the inspector which changed the lighting etc in the scene through the OnValidate() method. The weird part is there is no issues in run time. It is purely a editor performance issue.


I have tried putting this script into another scene to test and further diagnose the problem but it runs perfectly fine in that scene. As soon as I bring it back into the production scene I am getting terrible performance. The profiler looks like this alt text


I can't seem to find anything in the docs about these functions and/or googling comes to no end.


Does anyone have an idea what those functions are or know how to solve this kind of problem.


Any help would be much appreciated.


Thanks.

editor-profiler.png (89.3 kB)
Comment
Add comment · Show 2
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 patrik-org · Oct 05, 2018 at 02:08 PM 0
Share

Did you find any answers to this? I'm having the same issue.

avatar image Brogan89 patrik-org · Oct 08, 2018 at 10:56 PM 0
Share

Not really. We don't have to issue any more but we did a rebuild of our weather script and its fine now. Unfortunately I can't remember what it could've been that was causing it. It was a long time ago now and we've had many editor updates since this issue. - Sorry can't be of help here

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Adam-Mechtley · Dec 17, 2017 at 09:24 PM

If you haven't already, I recommend you try enabling the Deep Profile option in the Profiler window. It's likely to over-inflate your performance problem, and may even slow things to a crawl, but if you can get even one usable sample it might give you more insight into what exactly is causing the issue.

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 Brogan89 · Dec 17, 2017 at 09:37 PM 0
Share

Thanks. Yea I'm in the process of doing that now. Unity Editor using 11 - 13 GB of memory and taking about 10-20 seconds for each moue click event in the profiler, and its crashed once. I'll get there though :)

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

90 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

Related Questions

Performance load of OnGUI 0 Answers

Remote Profiling for iOS 0 Answers

performance issue on android devices unity 2018.1.1f1 0 Answers

Better performance? GUITextures or Texture2D drawn in function OnGUI? 0 Answers

Total memory allocated increases indefinately from .80GB untill crash 3 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