-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
High CPU usage when using custom styles and custom style compatibility issues #1236
Comments
Hi! Have you tried the latest v2.5.0-beta.4 for your styling issues? And for your CPU issue, you should try to move most of your custom styles into modules, or directly under Edit: One more question, was your CPU usage lower in the previous v2.4.0? |
The style issue has been fixed since v2.5.0-beta.3. The high CPU usage issue has existed for months, long before v2.3.0 |
This is weird, because you seem to only have simple custom styles. I will check if I can optimize that for custom styles without templates. |
In v2.5.0-beta.5, I moved the custom styles into modules, and the CPU usage was improved, down to around 35, and the pop-up cards on mobile devices were much faster on the pure room card list and several corresponding pop-up cards, but the button triggering speed was still relatively slow. There was not much difference on my complete dashboard. And after updating to v2.5.0-beta.7, the CPU usage increased by 10%, and the memory usage was even higher. |
Do you have card-mod installed? Someone said recently that he fixed his performance issue by removing it. And good to know for the higher CPU usage in the latest beta, I will revert some code then 👌 |
I have card-mod v3.4.0 installed, I've tried removing it but it didn't change anything |
There is also a bit of lag when editing. Clicking Save will be stuck for a long time. In fact, it has been saved soon and it is still spinning. Force F12 has taken effect. Because I don't edit often, I don't know which version started. A previous version was normal. |
You seems to have a lot of errors with Apex charts, I don't see any errors from Bubble Card in these logs. |
I think this is not a problem caused by apexcharts. After uninstalling apexcharts, the problem still exists. |
For any feature request you can open a new discussion here:
https://github.com/Clooos/Bubble-Card/discussions/categories/feature-requests
For any question you can open a new discussion here:
https://github.com/Clooos/Bubble-Card/discussions/categories/q-a
Describe the bug
I think one of the reasons for high CPU usage is the use of custom styles. On a separate dashboard, there is only a list of room cards and the corresponding pop-up cards. When using custom styles, the CPU usage can sometimes be as high as 35%. Without custom styles, it is much lower (10-14%), and it is much faster on mobile devices. My dashboard uses a lot of pop-up cards, and the CPU usage is even higher, 60%.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
YAML
If applicable, add any relevant YAML code.
dashboard yaml
https://pastebin.com/gUHKi4Bu
Informations (please complete the following information):
Additional context


Add any other context about the problem here.
use styles
no use styles
2.mp4
After v2.5.0-bate.1 update
Before v2.5.0-bate.1 update
Thank you! 🍻
The text was updated successfully, but these errors were encountered: