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

moving this to the global scope so the DOM isn't read every call #39

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

dvrtech-us
Copy link
Contributor

It's probably not a noticeable speed difference, but because the var was defined in the scope of updateStatsDisplay(stats). The DOM would have been checked on each stat update to see if it exists. If I followed the code correctly, that would happen on every frame.

@mikegapinski mikegapinski merged commit 3e884ca into tesla-android:main Sep 9, 2023
1 check failed
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