Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Increased CPU utilization and dropping framerates

Discussion in 'Scripting' started by eco_bach, Jun 2, 2018.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi
    Trying to debug a desktop application which seems to slow down from its target rate of 30 to under 10 fps after 12-24 hours. At first I thought it must be memory and garbage collection related but if anything, memory usage is less after 24 hours!. However, my CPU usage goes from under 10% to 29%.

    Can any optimization experts suggest some likely code culprits for increased CPU usage to happen?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,419
    You probably want to connect Unity's Profiler and let it tell you what parts are slow. Much easier that way, than asking for opinions here.

    Here are a few resources that should help you to get started with the Unity Profiler.

    Learn how to diagnose common performance problems and optimize your projects:
    https://unity3d.com/learn/tutorials/topics/performance-optimization


     
    GoblinGameWorks and radiantboy like this.