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

Berbs #2357

Merged
merged 8 commits into from
Oct 16, 2023
Merged

Berbs #2357

merged 8 commits into from
Oct 16, 2023

Conversation

MarkSuckerberg
Copy link
Member

About The Pull Request

I'm not calling them biddle verbs.

Basically, adds verbs to a queue so that they won't be run if the MC is overtiming since by default BYOND will just run them even if it means the MC won't get much/any time. tl;dr possible lag/overtime reduction from verbs like input

Ports:
tgstation/tgstation#65589
tgstation/tgstation#68990
tgstation/tgstation#70647
tgstation/tgstation#71520

Why It's Good For The Game

Overtime bad

Changelog

🆑
/:cl:

MarkSuckerberg and others added 4 commits September 16, 2023 15:28
…e Server Is Overloaded

(#65589)

Co-authored-by: KylerAce <[email protected]>
Co-authored-by: Kyle Spier-Swenson <[email protected]>
Co-authored-by: LemonInTheDark <[email protected]>
…e_click_delay to deciseconds (#71520)

theres an issue with SSinput calculating the average_click_delay that
made it skip queuing clicks much faster than it should have. now it
should work. also moves everything to deciseconds for consistency
(except for the statpanel display, which changes it to per second). also
i increased the click delay threshold to 1 tick in deciseconds because
really we should only be refusing to queue if SSinput is being skipped
for whatever reason or each tick is receiving massive non input overtime
feex queuing clicks to lower overtime when the server is overloaded
:cl:
fix: queuing clicks should work correctly now
/:cl:
thanks to Vallat for pointing this out

whoops turns out most verbs havent been queued since may 11th because I made /datum/controller/subsystem/verb_manager have the SS_NO_INIT flag, without also removing a check in verb_manager/proc/can_queue_verb() that stops the verb callback from being queued if the subsystem isnt initialized yet. since subsystems with SS_NO_INIT obviously never have initialized set to TRUE, this always failed for every verb manager subsystem except for SSinput (because it doesnt have SS_NO_INIT).

also adds a debug var to force a subsystem to always queue incoming verbs if possible.

now the default verb management subsystem, and speech_controller will successfully queue verbs again. SSinput always queued verbs so that shouldnt change.
… (#70647)

* fixes _queue_verb() runtiming from /client/Click() and adds info

* Update code/controllers/subsystem/verb_manager.dm

Co-authored-by: Mothblocks <[email protected]>

Co-authored-by: Mothblocks <[email protected]>
@MarkSuckerberg MarkSuckerberg added the Test Merge Required They'll have to do it for free. label Sep 16, 2023
@github-actions github-actions bot added DME Edit GitHub Our very own Babylon. Code change Watch something violently break. labels Sep 16, 2023
@MarkSuckerberg MarkSuckerberg changed the title Ports Queued Verbs Ports Verb Queues Sep 16, 2023
@thgvr
Copy link
Member

thgvr commented Sep 16, 2023

Urge to rename to biddle verbs overwhelming

@MarkSuckerberg
Copy link
Member Author

I will kill you

@goober3 goober3 changed the title Ports Verb Queues Biddle Verbs Sep 16, 2023
@goober3
Copy link
Member

goober3 commented Sep 16, 2023

biddle verbs

@MarkSuckerberg
Copy link
Member Author

MarkSuckerberg commented Sep 16, 2023

>:C

@axelzonvolt
Copy link
Contributor

just... meet in the middle
and call them

berbs

@MarkSuckerberg MarkSuckerberg changed the title Biddle Verbs Berbs Sep 17, 2023
@ZephyrTFA ZephyrTFA changed the title Berbs Biddle Verbs Sep 19, 2023
@MarkSuckerberg MarkSuckerberg changed the title Biddle Verbs Berbs Sep 25, 2023
@thgvr
Copy link
Member

thgvr commented Sep 28, 2023

birbs...

@MarkSuckerberg MarkSuckerberg added this pull request to the merge queue Oct 16, 2023
Merged via the queue into shiptest-ss13:master with commit 4e0ccdc Oct 16, 2023
10 checks passed
@MarkSuckerberg MarkSuckerberg deleted the verb-queue branch October 16, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code change Watch something violently break. DME Edit GitHub Our very own Babylon. Test Merge Required They'll have to do it for free.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants