Skip to content

Make rich presence localization optional - #545

Open
thecatontheflat wants to merge 3 commits into
DoctorMcKay:masterfrom
thecatontheflat:master
Open

thecatontheflat wants to merge 3 commits into
DoctorMcKay:masterfrom
thecatontheflat:master

Conversation

@thecatontheflat

Copy link
Copy Markdown

This PR adds a localizeRichPresence option that short-circuits _getRPLocalizedString

Rich-presence localization populates a per-instance cache (_richPresenceLocalization) and is never evicted. This results in memory growth without bound. We observed this while running hundreds of clients under a single process. Might be an unsupported edge case for this library of course.

Attaching some throwaway scripts that reproduce the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant