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

[MIRROR] Limits plumbing reaction chamber ph balance attempts #400

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24721
Original PR: tgstation/tgstation#79429

About The Pull Request

  • Fixes #79427

It's not a memory leak but a dedicated while loop that will run as many times as required to accurately balance the ph of the solution. Sometimes it makes way too many attempts causing high tick usage. Now the loop will run for a maximum of 5 times before giving up preventing lag.

I decided 5 because that should be sufficient for most cases but it can be adjusted later by anyone interested by changing the value of the MAX_PH_ADJUSTMENTS define

Changelog

🆑 SyncIt21
fix: plumbing reaction chamber will attempt to balance the ph of the solution a maximum of 5 times before giving up and thus preventing infinite loops, high tick usage
/:cl:

…s [MDB IGNORE] (#24721)

* [NO GBP] Limits plumbing reaction chamber ph balance attempts (#79429)

## About The Pull Request
- Fixes #79427

It's not a memory leak but a dedicated while loop that will run as many
times as required to accurately balance the ph of the solution.
Sometimes it makes way too many attempts causing high tick usage. Now
the loop will run for a maximum of 5 times before giving up preventing
lag.

I decided 5 because that should be sufficient for most cases but it can
be adjusted later by anyone interested by changing the value of the
`MAX_PH_ADJUSTMENTS` define

## Changelog
:cl:
fix: plumbing reaction chamber will attempt to balance the ph of the
solution a maximum of 5 times before giving up and thus preventing
infinite loops, high tick usage
/:cl:

* [NO GBP] Limits plumbing reaction chamber ph balance attempts

---------

Co-authored-by: SyncIt21 <[email protected]>
@ReezeBL ReezeBL merged commit ac81a0c into master Nov 2, 2023
24 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-24721 branch November 2, 2023 04:10
AnywayFarus added a commit that referenced this pull request Nov 2, 2023
Iajret pushed a commit that referenced this pull request Jan 11, 2024
* Adds a Debug command to stop all weather.

* Update admin_verbs.dm

---------

Co-authored-by: ArcaneMusic <[email protected]>
Co-authored-by: Bloop <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants