Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: cache character's dead state #3282

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

scarf005
Copy link
Member

@scarf005 scarf005 commented Sep 27, 2023

Summary

SUMMARY: Performance "Port character dead state caching from DDA"

Purpose of change

ported

Testing

Before

image

after

image

with #3283

image

@github-actions github-actions bot added the src changes related to source code. label Sep 27, 2023
@scarf005 scarf005 requested a review from olanti-p September 27, 2023 03:32
Copy link
Member

@chaosvolt chaosvolt left a comment

Choose a reason for hiding this comment

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

  1. Compiled and load-tested.
  2. Resumed my waiting test in the refugee center I'd already prepared from last PR.
    image
    Seems to be improvement from what I can tell.

@scarf005 scarf005 added this pull request to the merge queue Sep 27, 2023
Merged via the queue into cataclysmbnteam:upload with commit 8aa0a1b Sep 27, 2023
9 of 14 checks passed
@scarf005
Copy link
Member Author

image

...nice.

@scarf005 scarf005 deleted the cache-dead-state branch September 27, 2023 05:17
scarf005 added a commit to scarf005/Cataclysm-BN that referenced this pull request Sep 28, 2023
* perf: extract glass jaw to variable

* perf: cache `Chracter::is_dead_state`

see: CleverRaven/Cataclysm-DDA@5c5b7ca

Co-authored-by: Andrew Krieger <akrieger@users.noreply.github.com>

* refactor: reorganize suffer_in_sunlight

* refactor: use std::any_of

* style(autofix.ci): automated formatting

---------

Co-authored-by: Andrew Krieger <akrieger@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants