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

Port speedup for materials::get_rotting() #613

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

olanti-p
Copy link
Contributor

Purpose of change

Optimize rotting corpses

Describe the solution

Port CleverRaven#44544

Testing

In a test scenario (blind avatar waiting in a middle of a city) materials::get_rotting() went down from ≈12% to 0%.

Additional context

The next expensive calls in item processing are get_heat_radiation() with total of ≈22%.

image

Aivean added 2 commits June 15, 2021 23:31
(cherry picked from commit 35a2d9e465c36f020a62903f55fef8be5824fb6f)
…s that are invalidated together with corresponding generic_factory

use the new versioned cache to optimize performance of materials::get_rotting

(cherry picked from commit 91af4a8f69ea6f9098a1a9b9df798fc4348c3601)
@Coolthulhu Coolthulhu self-assigned this Jun 21, 2021
@Coolthulhu Coolthulhu merged commit a8f5e9b into cataclysmbnteam:upload Jun 21, 2021
@olanti-p olanti-p deleted the port-material-caching branch June 21, 2021 18:05
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.

3 participants