playcanvas / playcanvas/engine

Expose option to disable animation playback on invisible characters

Open
#3,563 0 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: animation performance
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.