-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove unnecessary unpolish operation of the style, before polish the new style #12445
Conversation
Oh 11%.. |
Still valid according to the Wiki: https://wiki.qt.io/Technical_FAQ#How_can_my_stylesheet_account_for_custom_properties.3F |
The Stackoverflow link should be replaced by the Wiki link. |
This work is completed and ready for test and review |
All skins still looking good. For reference: I'm still worried to merge it that late before the release.
|
Yes, I aggree, that this is too risky short before a release |
Yeah, let's move any risky changes to 2.4.1. Both we and users will have a much easier time pinpointing regressions between 2.4.0 and 2.4.1 than in the large batch of changes between 2.3.x and 2.4.0. (I'd argue that we should probably release more often in general. Running a dev/beta for too long will always risk having users "out of the loop" of changes that might only regress something in certain scenarios. I consider #3761 a good example of how platform-specific bugs can linger for years if there are too few users actually battle-testing the program) |
@ronso0 Can we merge this now? The longer we test it, the better. |
Sure, thanks for the reminder! "The longer we test it, the better." also applies to #11526 btw 😉 |
Thank you! |
Oh no, didn't pay attention: This should have gone to main. |
The outcome of the discussion above was, that it should go into 2.4.1 - wasn't it? |
Yes, but reconsidering I came to the conclusion I just posted. |
Using the profiler I noticed that ~11% of the main thread calculation time was consumed for updating push-button widgets (while one deck playing and the others CUE button slowly blinking).
I found out that removing that removing the style->unpolish() call before every style->polish() call has no visual effect, but impacts the CPU time significiantly.
I guess this code is either not needed on todays Qt anymore (I use the official Mixxx buildenv with Qt 5.15.8) or it's a platform specific behavior.