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

feat: Add caching mechanism to Unit Fields #96

Merged
merged 4 commits into from
Jan 22, 2025

Conversation

sogladev
Copy link

Changes proposed:

Cherry-pick the Unit Field cache system from AzerothCore

Some unit fields are set differently in AzerothCore. I left how TC handles the setting of those fields.

Target branch(es): 335

Issues addressed:

Tests performed: (Does it build, tested in-game, etc)

Built with TC 382bf77
Epoch 08574fef9c7c

Known issues and TODO list:

  • [ ]
  • [ ]

sogladev and others added 4 commits January 12, 2025 20:22
…eraging cache

cherry-pick "feat(Core/Optimization): Optimize build of units update
object by leveraging cache."
azerothcore/azerothcore-wotlk@1f640c9

Co-authored-by: Anton Popovichenko <[email protected]>
reverts 2f04c48
"Core/PacketIO: Reduce size of SMSG_UPDATE_OBJECT by trimming trailing
zeros in values updatemask"

Pointers to positions in Bytebuffer are no longer valid if trailing
zeros are removed
…n the same world update tick.

"fix an issue when the client sees dead NPCs when they are not"

cherry-pick "fix(Core/Unit): Invalidate update object cache when
changing health in the same world update tick."
azerothcore/azerothcore-wotlk@04acfd9

Co-authored-by: Anton Popovichenko <[email protected]>
@kaytotes
Copy link

Prioing review and my initial testing asap due to the high bounty. Thank you @sogladev

This one might require me to actually ship a build to our internal realm for QA team to try and break not just me so give me some time and I'll get back to you :)

@kaytotes kaytotes merged commit bea9674 into Project-Epoch:epoch-core Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cached Unit Fields - Bounty $100
2 participants