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

Improve visualization performance (substantially) #109

Merged
merged 4 commits into from
May 10, 2022

Conversation

alryaz
Copy link
Contributor

@alryaz alryaz commented May 6, 2022

Hello!
First of all, TYVM for this great plugin! It's been making my job easier ever since I discovered it.

This is my first pull request for this project.
I found that the download button updates on every redraw, which heavily taxes CPU, causing topology to be displayed at below 20 FPS mark.

Hereby I propose generating PNG's only when the button is pressed. This small edit made load animations butter smooth, and now my portable devices display it without a hitch.

@mattieserver
Copy link
Collaborator

Hi,

Thanks for the PR.

Looks good, will test it later today.

@mattieserver mattieserver merged commit b5991a5 into netbox-community:master May 10, 2022
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