Skip to content

Fix boats not receiving input in 2021 - #935

Closed
magenta404 wants to merge 2 commits into
masterfrom
fix/respect-input-update-mode
Closed

Fix boats not receiving input in 2021#935
magenta404 wants to merge 2 commits into
masterfrom
fix/respect-input-update-mode

Conversation

@magenta404

Copy link
Copy Markdown
Collaborator

The following setting is also in 2020, but for some reason input still worked even though we were reading input in FixedUpdate and the default is DynamicUpdate.

This PR respects this setting by reading input in either Update or FixedUpdate depending on chosen mode. This is pretty rough but will be implemented nicer with #486.

We did not respect the "update mode" setting but it worked before 2021.2
for some reason.

Input in "update" looks to be the default so this will cover us for now.
@magenta404 magenta404 added the Bug label Oct 26, 2021
@magenta404
magenta404 requested a review from huwb October 26, 2021 23:36

@huwb huwb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that it breaks. I would have thought that reading it in the wrong update would put you at risk of getting old input values from last frame, in the wrist case. But this implies you get no input at all? That seems wrong..

@huwb

huwb commented Oct 27, 2021

Copy link
Copy Markdown
Contributor

Have others had to add two update functions as well, are you aware? These add significant runtime cost so it seems a bit crazy to me if everyone is going to have to do this.

@magenta404

Copy link
Copy Markdown
Collaborator Author

True... I checked the forum and looks like the next version of the input package fixes it. It's not available yet from what I could see. Will close this.

@magenta404 magenta404 closed this Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants