perf/input-state-swap #711

Open
SakulFlee wants to merge 2 commits from perf/input-state-swap into main
Owner
No description provided.
perf: avoid deep cloning InputState every frame
Some checks failed
ci/woodpecker/push/linting Pipeline failed
66e10527ad
InputState contains two levels of HashMaps (button_states and
delta_states). Previously, the entire InputState was cloned every
frame to insert into ECS. Now, delta states are taken out via
std::mem::take and only button_states are cloned, which is much
cheaper. A from_parts constructor and take_deltas method were added
to InputState to support this.
style: auto-format code
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
45f625108f
Some checks are pending
ci/woodpecker/push/linting Pipeline was successful
ci/woodpecker/pr/test
Required
ci/woodpecker/pr/linting
Required
Some required checks are missing.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin perf/input-state-swap:perf/input-state-swap
git switch perf/input-state-swap
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SakulFlee/Orbital!711
No description provided.