Skip to content

[Merged by Bors] - Schedule gilrs system before input systems#2989

Closed
branan wants to merge 1 commit intobevyengine:mainfrom
branan:main
Closed

[Merged by Bors] - Schedule gilrs system before input systems#2989
branan wants to merge 1 commit intobevyengine:mainfrom
branan:main

Conversation

@branan
Copy link
Contributor

@branan branan commented Oct 18, 2021

Objective

Previously, the gilrs system had no explicit relationship to the input
systems. This could potentially cause it to be scheduled after the
input systems, leading to a one-frame lag in gamepad inputs.

This was a regression introduced in #1606 which removed the PreEvent stage

Solution

This adds an explicit before relationship to the gilrs plugin,
ensuring that raw gamepad events will be processed on the same frame
that they are generated.

Previously, the gilrs system had no explicit relationship to the input
systems. This could potentially cause it to be scheduled after the
input systems, leading to a one-frame lag in gamepad inputs.

This adds an explicit `before` relationship to the gilrs plugin,
ensuring that raw gamepad events will be processed on the same frame
that they are generated.
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Oct 18, 2021
@mockersf mockersf added A-Input Player input via keyboard, mouse, gamepad, and more C-Bug An unexpected or incorrect behavior and removed S-Needs-Triage This issue needs to be labelled labels Oct 18, 2021
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it P-Regression Functionality that used to work but no longer does. Add a test for this! labels Oct 22, 2021
@mockersf
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Dec 16, 2021
# Objective

Previously, the gilrs system had no explicit relationship to the input
systems. This could potentially cause it to be scheduled after the
input systems, leading to a one-frame lag in gamepad inputs.

This was a regression introduced in #1606 which removed the `PreEvent` stage

## Solution

This adds an explicit `before` relationship to the gilrs plugin,
ensuring that raw gamepad events will be processed on the same frame
that they are generated.
@bors bors bot changed the title Schedule gilrs system before input systems [Merged by Bors] - Schedule gilrs system before input systems Dec 16, 2021
@bors bors bot closed this Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Input Player input via keyboard, mouse, gamepad, and more C-Bug An unexpected or incorrect behavior P-Regression Functionality that used to work but no longer does. Add a test for this! S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants