Search Unity

Resolved Performance after switch from old to new system

Discussion in 'Input System' started by zdolezal, Aug 17, 2021.

  1. zdolezal

    zdolezal

    Joined:
    Sep 27, 2017
    Posts:
    75
    So before each bigger update, I am running a profiler to see, if there is "something new" with notable impact on the top.

    I have switched to the new input system recently and now, I'm seeing "lag spikes" appearing just by moving the mouse in the input system code base :-(. Is that normal?

    upload_2021-8-17_12-43-11.png

    I am on Unity 2020.3.14f1 with Input system Version 1.1.0-preview.3 - February 05, 2021
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Should be fixed in the upcoming 1.1-pre.6 (which is expected to be the last version before 1.1 verified).

    Been an issue for a while. High-frequency mice (also touch) can easily end up swamping the queue with hundreds of events each frame. There's a fix on the native side where fetching those events led to excessive wait times within Windows code due to us pulling out events one by one and there's a fix on the managed side where mouse events get collapsed/merged.
     
    zdolezal and NotaNaN like this.