-
Notifications
You must be signed in to change notification settings - Fork 345
Reduce some memory usage #5764
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
Reduce some memory usage #5764
Conversation
… for some reason, despite not even being used
@@ -9,7 +9,6 @@ GLOBAL_VAR_INIT(starlight_color, pick(COLOR_TEAL, COLOR_GREEN, COLOR_CYAN, COLOR | |||
temperature = TCMB | |||
thermal_conductivity = OPEN_HEAT_TRANSFER_COEFFICIENT | |||
heat_capacity = 700000 | |||
var/starlight_source_count = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use a comment here to indicate removal, as this variable exists over on tgstation.
var/starlight_source_count = 0 | |
//var/starlight_source_count = 0 //MONKESTATION REMOVAL: Unused variable, removed to save memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm planning to remove it upstream too if there's not a reasonf or it
Co-authored-by: MichiRecRoom <[email protected]>
Co-authored-by: MichiRecRoom <[email protected]>
About The Pull Request
This does a few things to reduce memory usage, mostly removing some vars off of base types:
/atom
. If anyone wants this back, they can refactor it to a component.cached_blood_dna_color
var on/atom
was moved to/datum/forensics
weather_affectable
var on/turf
- nothing anywhere ever actually changes it from the defaultTRUE
Why It's Good For The Game
I want to make these numbers smaller

Changelog
🆑
refactor: Removed some unused code and rearranged some other code to hopefully reduce server-side memory usage.
/:cl: