playcanvas / playcanvas/engine
Should the input update be done before the script update?
Open
Nobody has claimed this yet.
area: input
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
https://github.com/playcanvas/engine/blob/master/src/framework/application.js#L1149
At the moment, the input update is done after script update which means that input can be a frame behind?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/framework/application.js around line 1149 and inspect the application update sequence for input and scripts. Trace how each update is invoked and determine whether the reported one-frame delay can be reproduced. Done means the ordering is validated or corrected, with the resulting input timing behavior confirmed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100