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

Optimizing settings panel #292

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

JKohlman
Copy link
Collaborator

Currently the settings panel re-renders every cycle, this is a relatively expensive operation. Rendering an empty node when settings aren't open should save on lag. This isn't optimal but it does seem to work. Ideally we should refactor to not render anything when not needed, even when settings are open. Idea credits to Guus.

Should test if this causes any issues before merging, will try tomorrow and update

@github-actions
Copy link

@JKohlman JKohlman marked this pull request as ready for review March 31, 2022 21:45
@OhMyGuus OhMyGuus merged commit 0d65f78 into OhMyGuus:nightly Apr 1, 2022
@JKohlman JKohlman deleted the optimize/render_settings branch April 1, 2022 04:53
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