playcanvas / playcanvas/engine
Expose option to disable animation playback on invisible characters
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Currently the animations / bones are evaluated for all characters.
We need to implement a solution to stop this taking place for characters that are not visible in the frame. The rendering side of this already takes place, and final bones are not evaluated / uploaded to the GPU, but the work of animation component should be avoided in a similar way.
Note that there should be a property to drive this .. as there are cases users might need to update bones even for invisible characters.
Also, the events should be triggered even for invisible characters, or maybe this be behind another property to give this as an option.
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
No files or tests are named. Start by tracing the animation component's evaluation and the existing rendering-side visibility handling; define how a property controls updates for invisible characters and how animation events behave, then add coverage for both default and opted-in behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100