• 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 KakCAT · Sep 09, 2012 at 11:39 AM · slow

where is the slowdown?

Hi,

I'm starting with unity and Orthello. I'm instantiating 700 sprite prefabs in order to show them in the background.

At the start of the level, the time that takes to instantiate the sprites is around 0.5 seconds (clocked by myself), but afterwards, there's a delay of 15~20 seconds where unity is doing something I don't know. I'm almost sure it's not stuck in a script of mine.

How can I discover what unity is doing in that 15 seconds delay?

thanks,

Comment
Add comment · Show 5
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 fafase · Sep 09, 2012 at 12:25 PM 0
Share

You could place some Debug.Log(); and see which one slows down. You could use Time.time to see what happens and when, but note that in the same frame all returns same time value. At least placing the print on the top of the functions you will see when printing slows down.

avatar image KakCAT · Sep 09, 2012 at 02:18 PM 0
Share

Thanks for your answer,

the problem is that it's not my code (I already logged it), so I don't know where to search.

I think orthello is the cause (I will log it)

avatar image Eric5h5 · Sep 09, 2012 at 02:56 PM 0
Share

Ideally you'd have Unity Pro, and could look in the profiler.

avatar image KakCAT · Sep 09, 2012 at 02:59 PM 0
Share

yep, it's orthello. It seems it's dying when he's using GameObject.Find in the "Start" function when there are lots of objects. I've removed the lines but it seems to be as slow as before, so it may not be the only cause.

I'll keep digging...

avatar image KakCAT · Sep 09, 2012 at 03:01 PM 0
Share

things are far from ideal right now ;)

$$anonymous$$aybe in the next months if I can ship something decent to earn some $$$ (in fact I'm evaluating unity because of microsoft's XNA fiasco)

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

10 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

Related Questions

A node in a childnode? 1 Answer

Unity acting up 0 Answers

unity running extremely slow 0 Answers

Why is Unity sluggish in Windows? 2 Answers

unity application getting slow 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges