Skip to content

the average house cat can hit a top speed of around 30 miles per hour #6243

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

Merged
merged 41 commits into from
Apr 9, 2025

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Apr 6, 2025

About The Pull Request

look i didn't want to name this PR another variant of "some more performance tweaks", okay?

Ports the following PRs:

Changelog

🆑
fix: Optimized some more stuff, reducing the potential for server-side lag (time dilation) in some situations.
fix: Chat messages now actually queue as intended.
fix: Fixed improperly cleaning up memories when a mind is deleted.
fix: Messages sent to MMIs in wiremod components now have a 1 second cooldown, to prevent massive spam.
code: (mc-oofet) Basic mobs that delete on death now ghost before dying.
fix: (SmArtKar, Kapu) Atmospheric tanks no longer fetch icons every tick
fix: (tontyGH) Pubby's whiteship no longer breaks when it tries to dock.
fix: (SmArtKar) Fixed a Honkerblast 5000 runtime.
fix: (Melbert) Fixed an error from reading an ID card closely when you can't read.
/:cl:

@Absolucy Absolucy added the Code: Performance / Optimization the number going down makes me happy :3 label Apr 6, 2025
Absolucy and others added 18 commits April 8, 2025 04:37
## About The Pull Request

According to Kapu, RscFile() is a hash operation and thus is relatively
slow. Having dozens of them ran every tick by atmos tanks is not ideal.
There's more uncached icons in filters to tackle but the only one
relatively impactful is status display init mask - however our filter
code is mildly fucked to say the least, as icon() is ran ***regardless
of whenever a filter is cached or not*** because we pass them as lists,
not actual filter objects - and filter() seems to call one internally
regardless of what its passed, so every update_filters fetches an icon
for anything with an alpha/displacement filter. This doesn't actually do
much on its own, but is nice to have so that future contributors don't
make the same mistake by copypasting code.

## Changelog
:cl: SmArtKar, Kapu
fix: Atmospheric tanks no longer fetch icons every tick
/:cl:
…nt CI fails (#88413)

## About The Pull Request

Fixes #71092 

## Why It's Good For The Game

Flaky tests bad, fixman good...

## Changelog

:cl:
fix: Pubby's whiteship no longer breaks when it tries to dock
/:cl:
…nt/ai_movement/Recover()` to avoid runtime spam
## About The Pull Request

turns out there's _zero_ cooldown on sending messages to MMI. which can.
uh. lead to an unpleasant experience.


![image](https://github.com/user-attachments/assets/0e0319e3-92bf-4d64-ae15-df8bfe800be6)

so i added a 1 second cooldown. simple enough.

## Why It's Good For The Game

this shit nearly crashes my game

## Changelog
:cl:
fix: Messages sent to MMIs in wiremod components now have a 1 second
cooldown, to prevent massive spam.
/:cl:
## About The Pull Request

Mech code is ass, projectiles_per_shot is 1 by default so honkerblast
was trying to fire nonexistent projectiles in its parent call and
runtimed, preventing target logging (Paddy claw does this correctly)

## Changelog
:cl:
fix: Fixed a Honkerblast 5000 runtime
/:cl:
## About The Pull Request


![image](https://github.com/tgstation/tgstation/assets/70376633/737577c5-b45c-4dfb-8b6c-7a106cd2156a)


## Why It's Good For The Game

its faster i think

## Changelog
:cl:
code: basicmobs that delete on death, ghost before dying
/:cl:
Absolucy and others added 13 commits April 8, 2025 20:51
This always expects to return a list, even if empty.

But this early returned before the parent call, meaning it didn't return
the empty list (from parent) as expected.

:cl: Melbert
fix: Fixed an error from reading an ID card closely when you can't read
/:cl:
@Absolucy Absolucy merged commit f04328e into Monkestation:master Apr 9, 2025
25 checks passed
@Absolucy Absolucy deleted the more-performance-shit branch April 9, 2025 16:40
github-actions bot added a commit that referenced this pull request Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Fix fix da bug Code: Performance / Optimization the number going down makes me happy :3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants