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 /
  • Help Room /
avatar image
0
Question by Dartimos · May 25, 2017 at 08:14 AM · freezedestroy objectend

Freeze on stop. Freeze when deleting GameObjects during runtime.,Slow to delete. Slow to exit play mode.

I've been trying to track a problem I'm having since upgrading Unity to the newest version.

Playing the program is fine. It runs, creating a hex board with multiple low-poly trees and rotating the camera while displaying a UI. The problem comes when I push the play button again, ending the program. Everything freezes for a while. This did not happen before I upgraded Unity.

More info:

I paused the game. No problem. The scene creates three maps, rotates around a center point and turns the maps on in a rotation (shows one at a time).

Here's the fun part: I delete one of the maps and it freezes. No scripts on these maps. There shouldn't be any coroutines accessing the maps. Simple mesh with textures.

I hope someone can help me track this down. Sorry if this is a wrong format, missing info, etc. First time posting.,I've been trying to track a problem I'm having since upgrading Unity to the newest version.

Comment
Add comment · Show 1
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 Dartimos · Jun 22, 2017 at 01:30 AM 0
Share

Created this code:

 void createTest$$anonymous$$ap()
 {

     for (int x = 0; x < 100; x++)
         for (int z = 0; z < 100; z++)
             Instantiate (Prefab, new Vector3 (x, 0, z), Quaternion.identity);


 }

Added a nice 7 vertices, four triangle hex. Two seconds to load, twelve to unload. Something is wrong. I think there is a bug or a problem with my laptop but even that doesn't explain how it takes six times more time to unload. Probably going to the bug board with this one.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dartimos · May 29, 2017 at 04:42 AM

Spent a little time on this this weekend. Ultimately the Unity update has made the destruction or removal of gameObjects to take a longer time. Whereas creating them takes a short time, destroying them can take up to 100ms (my best estimate) each on an average machine. If you have 1000 gameObjects, you are looking at a minute and a half to shutdown.

I'll have to test if it's my Scene, program or Unity in general. I'll update again if I get around to testing an empty project, creating 1000 cubes and then destroying them.

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

103 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 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

AssetBundle LoadAllAssetsAsync freeze Unity Editor 5.3.3p2 (64-bit). 0 Answers

Unity freezes when I juggle Lists and SortedLists. 1 Answer

Problem with "play" button 0 Answers

Unity freezes after editing code (Visual Studio) 0 Answers

Baking Navmesh at runtime freezes the game for a couple seconds 1 Answer


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