Skip to content

Problem with Imports.XinputGamePadSetState() using 76% of the CPU (Unity 2019.4.29f1) #45

Description

@lazydevyo

Yesterday i installed the latest unity package you provided at the release page. I looked at the example, and i added the GamePad.SetVibration() function at my main code, into the FixedUpdate(). Everything worked fine, the next day, i launched Unity tried the game and i noticed a huge performance issue, game was running at 4 FPS in editor also after Building, the profiler is showing me that GamePad.SetVibration() => Imports.XinputGamePadSetState() is using 76% of the CPU, Any idea whats wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions