Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 pioiwan · Sep 25, 2014 at 07:51 AM · editorprofilerprofilingslowdown

Profiling a gradual Editor slowdown?

I'm experiencing a gradual Editor slowdown. After a few Plays and some time spent in the game (inside the Editor), the game runs considerably slower and finally gets to the choppy 10 FPS. Real FPS - measured with a separate script - fall down and as the game gets slower, the FPS estimate given by the Stats window gradually gets higher. The Profiler doesn't show any performance issues.

Restarting the Unity Editor helps. Game runs super-smooth after an Editor restart, then after a time it slows down. Restarting the game in Editor doesn't change a thing - it's still slow after a restart. Only restarting the whole Editor does help.

I didn't manage to test if I happens in the build, but all the traces lead to some kind of Editor performance leak. It most surely isn't a memory issue - I experienced the slowdown when Windows Task Manager displayed very low memory use.

How should I approach debugging and profiling an Editor performance issue?

Comment
Add comment · Show 8
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 fotaras · Sep 25, 2014 at 08:10 AM 0
Share

Try first your game as a standalon windows game to see the performance

avatar image pioiwan · Sep 25, 2014 at 08:54 AM 0
Share

Yep, that's the plan. But the problem exist regardless - testing game in Editor gets PAINFULLY SLOW after a short while of usage.

avatar image fotaras · Sep 25, 2014 at 09:14 AM 0
Share

@pioiwan If you build it and play the build, does it play ok?

avatar image pioiwan · Sep 25, 2014 at 09:19 AM 0
Share

We have a lots of custom shaders right now and they don't compile - so I can not make a build right now. But as I said - I see it as more of an Editor issue.

avatar image fotaras · Sep 25, 2014 at 09:24 AM 0
Share

Yes ok, but the problem is on Play. And it seems like memory problem. The garbage collector is a bit weird. what is the memory in the editor stats?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Baste · Sep 25, 2014 at 03:47 PM

Are you doing any editor scripting at all? If that's the case, you might have a memory leak in one of those scripts - say a custom view that keeps adding elements to a list or something along those lines.

Anyways, to profile the editor, open the Profiler window (Window/Profiler), and select "Profile Editor". That's only available on pro, so if you're on free, no such luck.

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 pioiwan · Sep 25, 2014 at 06:38 PM 0
Share

//Copy of a comment from discussion under the Question. $$anonymous$$ay shed some light of the whole problem I had.

Wow, I didn't know about Profile Editor option, I totally missed it. Yes, we're using a fair amount of editor scripts.

BUT: today I have spent a whole day browsing through repository history and checking when did the problem start. I tracked it down to a S$$anonymous$$AA anti-aliasing script, that caused all the problems. It's basicly a camera post-effect with a custom shader.

As I now track the issue with Editor Profiler the whole overheard appears in DockArea.OnGUI(). Details in the screenshot: http://imgur.com/r1ukr15.

I don't know if I would track the faulting script using editor profiling, but it would give some additional info.

I don't fully understand it, but got it working. Thanks guys :)!

EDIT: LOL, LOL, LOL. Actually the whole performance hog was in DISPLAING THE STATS WINDOW. Turn off the window - it works fine.

avatar image Baste · Sep 25, 2014 at 06:45 PM 0
Share

That is actually hilarious. Glad I could help!

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

27 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

Related Questions

Seeing total allocated memory per-function in the profiler? 0 Answers

Setting Active Profiler to WindowsPlayer does nothing 0 Answers

Unaccounted time between: WaitForTargetFPS and GPUProfiler.EndQueries 0 Answers

How to reset profiler data? 0 Answers

EventSystem.Update() takes up 90% of CPU - Profiler Data Help 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