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. Dismiss Notice

Question InputManager is cpu hog?

Discussion in 'Editor & General Support' started by Innovine, Apr 9, 2023.

  1. Innovine

    Innovine

    Joined:
    Aug 6, 2017
    Posts:
    522
    InputManager is taking 1.5ms to execute, making it the most CPU intensive script in my game. It takes more CPU time than my n-body orbital mechanics simulation, and I'm not even providing any input.
    Why?
    And can I get rid of it?
    I have Rewired, and the Oculus package providing input. I have absolutely no idea what the mess of Input systems is doing or why, please advise.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,711
    In the final build or in the Unity editor? Editor doesn't count for profiling...
     
    DevDunk likes this.
  3. guavaman

    guavaman

    Joined:
    Nov 20, 2009
    Posts:
    5,499
  4. Innovine

    Innovine

    Joined:
    Aug 6, 2017
    Posts:
    522
    Aha, yes, i took a closer look and it is indeed this.
    I'll take a look at the optimization tips, thanks! Hopefully I can reduce this down by a lot.