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

Max Actions Per Minute (APM)

Discussion in 'Input System' started by Pelor, Nov 29, 2021.

  1. Pelor

    Pelor

    Joined:
    Jul 18, 2018
    Posts:
    13
    Just curious what the max APM is of the input systems (new and old).

    I believe under the old system we'd look for inputs per frame, so you're limited by frame rate (previous actions would overwrite new actions if your frame rate was low enough). Please correct me if I'm wrong.

    I have limited experience with the new system but I was curious if this "issue" has been fixed since it's event driven? Does the event fire off between frames so you can add the action to a queue?
     
  2. Fenrisul

    Fenrisul

    Joined:
    Jan 2, 2010
    Posts:
    617
    The old / original system was basically "It uses Update" so you were effectively limited to your FPS.

    You can actually manually force the new input system to poll whenever you want. (ie: InputSystem.Update() )
    It's a bit creepier than that because different devices have different native rates of update (ie: a gaming mouse with 1000hz updates versus a wireless gamepad with maybe 60-100 average); InputSystem will merge things like rapid mouse updates automatically to give you accurate updates without requiring you to process events at a kilohertz speeds.
     
    Pelor likes this.