-
Notifications
You must be signed in to change notification settings - Fork 0
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 load at idle #2
Comments
I'm not 100% sure I'm reading this for loop correctly, but you might want to make this sleep statement happen every iteration. Otherwise this check will just run as fast as it can |
Good catch - that's one thread fixed |
Here's the other problematic bit. Not sure why, but something about these calculations is pretty cpu intensive. Lines 357 to 362 in 6dbc3f7
Lines 375 to 383 in 6dbc3f7
|
Pretty sure the issue at hand is that the math of the breathingEffect function just uses a lot of CPU cycles, and each LED thread that uses it starts its own instance, which quickly adds up. Not really worth fixing. |
Frequently, two threads take 100% cpu time each, even at idle. Likely due to improper / inefficient threading configuration.
The text was updated successfully, but these errors were encountered: