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

Add 'BXT_DISABLE_DISCORD_RPC' environment variable #419

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

SmileyAG
Copy link
Collaborator

No description provided.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@YaLTeR
Copy link
Owner

YaLTeR commented Feb 17, 2023

getenv is doing a look-up by string, which is costly and not something we want to do every frame. Please change it so discord integration checks getenv once upon initialization, after which it sets an internal flag (whether it's enabled or not), and then the discord integration functions themselves check that flag (so no extra checks in the hooks).

@YaLTeR YaLTeR merged commit d616222 into YaLTeR:master Feb 18, 2023
@YaLTeR
Copy link
Owner

YaLTeR commented Feb 18, 2023

Thanks!

@SmileyAG SmileyAG deleted the disable_discord_rpc branch February 19, 2023 17:06
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.

2 participants