-
Notifications
You must be signed in to change notification settings - Fork 687
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
The effects and shadows are CPU expensive. #36
Comments
After i digged a little at details and observations I located that the component "QtMaterialFlatButton" is the responsible to that CPU Consumption. |
It seems to me it is a "busy wait" for the "close button pushed" event. |
After some investigation, I noticed, that the halo animation (pulsing animation when button is focused) is causing looping paint events, even if it's not visible at a time. Temporary fix is to comment the line starting the animation:
in I wish it could be addressed properly, unfortunately, I can't figure out how this state machine system exactly works. I know that this project is not actively maintained, but maybe @laserpants would find some time to have a look at this? |
void QtMaterialRaisedButtonPrivate::init()
|
If you open the Dialog box in the example application, it eats 20-25% of CPU in core i3!!!
I am using many controls including flatbutton, dialog, drawer, slider, etc in my application, but now the application takes > 25% CPU in just standby mode.
Any workaround to optimize this will be appreciated.
The text was updated successfully, but these errors were encountered: