-
-
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
use QOpenGLWindow::update to trigger the WVuMeter rendering #11698
Conversation
…to WVuMeterLegacy
I can confirm that this branch performs still good with Ubuntu Focal and |
Thanks for confirming, @daschuer . Let's see if @JoergAtGithub and/or @NotYourAverageAl can test this on Windows. (I have some additional tweaks, but I want to go one step at a time) |
fixed formatting issue |
Sounds promising. I will test it later this week! |
I tested this PR on my Windows 11 system and still see the lag in the UI. It might be, that this PR is slightly more responsive than the 2.4 branch, but with |
Ok, that's too bad. And strange that you are both seeing something else. I found another solution: on macOS, --disable-vumetergl behaves badly. But: I believe this is basically caused by the use of QStylePainter. If I replace:
with a simple
it runs smooth. I believe the only thing the QStylePainter is used for is to set the background color. I already am determining the background color differently for the GL VuMeter so we could do the same here. I will create a PR with this change. If this works well everywhere, I would prefer this because it would allow us to have the same implementation on all platforms. |
Done in #11722 . This disables the GL based VuMeter by default and enables an improved legacy VuMeter (no QStylePainter). |
I think this PR can be closed? |
yes! thanks. |
Instead of rendering and swapping the opengl-based WVuMeter directly from WaveformWidgetFactory, call updateGL (through QOpenGLWindow::update()), similar to the mechanism used for WVuMeterLegacy.