JUCE
JUCE copied to clipboard
[Bug]: Dropshadower impact on performance (JUCE 6.1.6 from 6.1.2)
Detailed steps on how to reproduce the bug
I noticed after upgrading from the 6.1.2 to the 6.1.6 version of JUCE that the UI responsiveness of the debug build of my application rendered it almost unusable. There is a significant amount of animation going on however I have not experienced this type of behaviour before. In a release build - there was no user-apparent impact.
For details and discussion see https://forum.juce.com/t/dropshadower-impacting-performance-recent-juce-change/51809
What is the expected behaviour?
A responsive UI. No noticeable delay between buttons being pressed and listener code being called.
On observation - a 50% CPU load was being reported from juce_DropShadower.cpp - timerCallback - in particular from the invocation of ::isWindowOnCurrentVirtualDesktop.
Reverting to 6.1.2, this CPU load vanishes.
Operating systems
Windows
What versions of the operating systems?
10.0.19044 Build 19044
Architectures
x86_64
Stacktrace
n/a
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the develop branch
I have not tested against the develop branch
Code of Conduct
- [X] I agree to follow the Code of Conduct