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

Speeds up the preferences menu by 10x. No that is not hyperbole. #20034

Merged

Conversation

AffectedArc07
Copy link
Member

What Does This PR Do

Speeds up opening the keybinds tab of the prefs menu, taking it from ~270ms to ~20ms, purely by moving the string concat operations to a list join.

BEFORE

image


AFTER

image

Why It's Good For The Game

One person's prefs menu using the full time allotment of over 5 ticks is disgusting.

Testing

Opened the prefs menu.

Changelog

🆑 AffectedArc07
add: Sped up the prefs menu
/:cl:

@AffectedArc07 AffectedArc07 added Refactor This PR will clean up the code but have the same ingame outcome Performance This will increase performance on the server labels Dec 28, 2022
@AffectedArc07
Copy link
Member Author

STOP OPENING MY PRS AS DRAFTS

@AffectedArc07 AffectedArc07 marked this pull request as ready for review December 28, 2022 23:08
@LemonInTheDark
Copy link
Contributor

lmao

@ParadiseSS13-Bot ParadiseSS13-Bot added the -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally label Dec 28, 2022
@AffectedArc07
Copy link
Member Author

Oh also to be clear thats not an isolated instance of this proc using a ton.
image
It happens a lot

@farie82 farie82 merged commit 590abaf into ParadiseSS13:master Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Status: Awaiting type assignment This PR is waiting for its type to be assigned internally Performance This will increase performance on the server Refactor This PR will clean up the code but have the same ingame outcome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants