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
1
Question by RoleyBaxter · Jun 04, 2014 at 10:15 PM · editorperformanceprocedural generationunity 4.5

Unity 4.5 2D project. framerate issues in editor after upgrade. not in build.

Hi!

I'm making a 2D platformer with procedural generation. If you are familiar with Terraria this is similar and you get the idea.

I have scripts that generate lots of gameObjects, sprites, 2DColliders etc. (I have the generation set to keystrokes for testing purposes.)

Since upgrading to Unity 4.5 I've been getting wierd performance issues when playing the game in the editor. The framerate freezes every second or so depending on how many generated objects are in the scene. The more objects the worse it gets.

This was not a problem in 4.3.4, everything ran fine.

I made a new build in 4.5 to test and I get solid 60fps in standalone despite generating 10 times more objects.

Anyone know whats causing this? The framedrop acts like a freeze and happens around once every 0.5 secs or so (I interpret this as not occuring every Update or FixedUpdate) and the duration varies in severity relative to amount of objects in the scene it seems. In between the freezes the framerate goes up but never reaches beyond 30fps.

Almost all sprites renders with Sprite/Diffuse, don't know if it matters but thought i should mention. Very few lights in the scene so far(< 10).

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
1
Best Answer

Answer by RoleyBaxter · Jun 04, 2014 at 10:40 PM

Ok, so I figured it out. It seems the problem is the amount of separate objects shown in the Hierarchy. Seems Unity 4.5 is more sensitive to this than previous versions.

Solved the problem by setting all clones as childs to a fewer amount of objects, something I had been planning to do anyways for better organisation. Not cluddering up the Hierarchy with 100s of objects seemed to help greatly in performance.

Comment
Add comment · Show 3 · 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 EyEy · Jul 02, 2014 at 04:31 PM 0
Share

Thanks, man! I had the same problem, had no idea what happened since unity 4.3.

avatar image DanjelRicci · Nov 06, 2014 at 08:24 AM 0
Share

$$anonymous$$y editor is still super slow compared to before, even if I have only 10 objects in the Hierarchy View. I also tried to not having a Hierarchy View at all, but I get the same lag.

avatar image b1gry4n · Nov 06, 2014 at 09:11 AM 0
Share

I have noticed there are many things that will contribute to a slow editor.

 -Putting your game window on another monitor.
 -Not playing in "$$anonymous$$aximize on play"
 -Having your scene view open along with your game view. (Solution is to open up the Animator window for me, covering the scene view)
 -Having the profiler open.
 -Having the "stats" drop down open.
 -Having objects selected in the Hierarchy

Even while doing non of the above I was having significant performance issues in the editor.

$$anonymous$$y end solution was to create a new project, re-import all of my files, and put my game back together. While that doesnt sound like an ideal solution, it will solve two issues. $$anonymous$$y project is now much more clean (during the process of reimporting I was cleaning code/scene clutter/ etc) and my editor now runs amazingly smooth. I have tons of objects in my hierarchy (3000+) in a procedurally generated world running at 150+ fps

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

21 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

Related Questions

Reference Variables and Drag-And-Drop 0 Answers

How to create voxel-based procedural terrain 1 Answer

EditorLoop taking 30-40ms of every frame, any way to reduce this? 1 Answer

Editor playback performance on Windows 1 Answer

Editor lags after update 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