Search Unity

Question Deep Profiling with new Input System shows unusable hierarchy

Discussion in 'Editor & General Support' started by hagen_PB, Aug 4, 2022.

  1. hagen_PB

    hagen_PB

    Joined:
    Apr 14, 2022
    Posts:
    3
    Hello,

    I have the problem that running the profile with deep profiling on Unity 2021.3.0f1 in a project that uses the new Input System leads to a pretty unusable hierarchy consisting only of recursive calls to DelegateHelpers.InvokeCallbacksSafe().

    upload_2022-8-4_9-29-2.png

    Probably related to this bug, the CPU usage window no longer rescales properly after a short 'warmup' and shows an excessive load on the CPU that is not reflected in the frame's hiearchy (Script execution time based on CPU usage: 183ms, time based on hierarchy: ~24ms)

    upload_2022-8-4_9-33-13.png

    As you can imagine. This makes deep profiling unusuable for me.

    Do you have any suggestions, what I could try to fix this?
     

    Attached Files:

  2. hagen_PB

    hagen_PB

    Joined:
    Apr 14, 2022
    Posts:
    3
    Updating the engine to 2021.3.6f1 did not change anything
     
  3. hagen_PB

    hagen_PB

    Joined:
    Apr 14, 2022
    Posts:
    3
    Same problem with Unity 2022.1.10f1
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,930
    Does this happen on new project?
     
  5. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,460
    If this is still happening for you, could you please report a bug via the Editor Menu
    Help > Report A Bug 
    ?
     
  6. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,460
    I've also logged your feedback regarding the difficulty to navigate the hierarchy
     
  7. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    720
    I don't see this in my 2022 project (which is also using the new input system a fair bit).

    I use Unity Events to respond to input events.

    upload_2023-1-29_11-53-19.png

    What are you using? It might be important.
     
  8. laessnb

    laessnb

    Joined:
    Jun 10, 2014
    Posts:
    101
    Same thing with 2019.4.31f1, unusable deep profile due to this apparently recursive input call.