Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Sudden performance problem has cropped up for me.

Discussion in 'Animation' started by cephalo2, Feb 10, 2019.

  1. cephalo2

    cephalo2

    Joined:
    Feb 25, 2016
    Posts:
    159
    So I have two scenes, a main menu scene and a gameplay scene. My main menu scene takes about 5ms to complete a frame, but my gameplay scene, even when it is played in the editor with few active game objects is sometimes taking 50 to 100ms. I have made a few minor updates to my game, but it didn't used to have this problem. One of my customers noticed that running the game used about 10% cpu previously, but is now using about 60% of cpu resources.

    Profiling is showing that even on a mostly empty screen with most objects disabled, updating the animators is taking an extraordinary amount of time. The offending process seems to be waitForJobGroupID, which after googling, seems like the animator is being held up by something else. What could it be waiting for, and does this profiler screen mean anything to you...
    PerfProblem.png
    Notice how the screen has a few UI elements and nothing else visible. Without info from the main menu, nothing really happens in this scene, but I'm still getting this performance problem.
     
  2. cephalo2

    cephalo2

    Joined:
    Feb 25, 2016
    Posts:
    159
    I realized that I'm instantiating many more gameobjects than I need, due to a bug in my project.