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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

keyboards input causes framedrops in Editor, gamepad = ok

Discussion in 'Input System' started by Robber33, Nov 29, 2019.

  1. Robber33

    Robber33

    Joined:
    Feb 22, 2015
    Posts:
    52
    not really sure if this is due to the new input system,
    but i'm using it and pressing keys to control character seems to spike editorloop times according to profiler,
    with gamepad there are no spikes

    greets
    Rob
     
  2. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Hi, could you file a ticket using the Unity bug reporter? Ideally with a screenshot showing the gamepad vs the keyboard scenario you're seeing in the profiler?

    Technically, at least on Windows, some additional time spent in event processing for keyboard input over gamepad input would be expected as the latter is collected in the background whereas the former is picked up on the main thread. However, the increase should hardly be measurable in the profiler and certainly not go so far as to lead to degradation of frame rates. So, sounds like something we should take a closer look at.
     
  3. Robber33

    Robber33

    Joined:
    Feb 22, 2015
    Posts:
    52
  4. Deozaan

    Deozaan

    Joined:
    Oct 27, 2010
    Posts:
    707
    If you post the case number here, someone who works for Unity and sees this post can go looking specifically for the bug report and maybe get back to you on the subject.
     
  5. NanushTol

    NanushTol

    Joined:
    Jan 9, 2018
    Posts:
    121
    Try changing the input system update mode to : "Process events in dynamic update"