Search Unity

Bug Version 1.0.0-preview.14 with Input System (new) causes huge spikes

Discussion in 'UI Toolkit' started by b4gn0, Mar 9, 2021.

  1. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    Hi,

    Since UI Toolkit version 1.0.0-preview.14, a default event system is used that uses the old input system.
    Placing the new "Input System Event System" somewhere causes huge spikes when simply moving the mouse pointer.
    upload_2021-3-9_1-44-12.png

    Is it possible to disable the event system altogether, or to specify an empty one?

    Right now we are forced to activate both input systems, which is something we can't do.

    Thank you
     
  2. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    Yes indeed, we are aware of that unfortunate situation. A fix for this issue is on the way for the next preview of the package, though it might still take a few weeks until that comes out.
     
  3. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    There was a discussion about this same issue a few months ago: https://forum.unity.com/threads/mov...osting-about-13ms-of-processing-time.1011493/

    As you can see, we have been aware of the bug (and how to fix it) for some time, but for internal reasons we haven't been able to update that part of the UI Toolkit package lately. We have hope that the situation will be resolved however, and this fix should be making it to the next release.
     
  4. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    Luckily we don't need inputs at all because we handle them.

    We created an "Empty" event system and added it to UIElementsModule assembly compilation using assembly reference (the registration / deregistration API is internal).

    Performance restored.