g.setGradientFill BUG, It Makes macOS go Slow as Hell!!!
-
I recently found a Bug that makes my mac Computer go Slow as Hell.
After doing Some tests and getting help from @ulrik and @d-healey
I Found out thatg.setGradientFill
is the troublemaker.Everything is So smooth on the Windows side, but on my Mac, it makes the UI Go Glitchy and stuttery.
Here is an example to showcase the Bug,
JUST CLICK ON Button, and then move the Knob, It takes ages to change!
or try to fold the script editor!
@Christoph-HartHiseSnippet 1616.3oc6Y80aaaCDmJIpM1coqsnO0GFH5CCxooo14uaHqntwwN0K0IF0o+CEEsJRT1DQlTShtwNAAnCXed1Wg0W1migArm1S6k8xdY6HkrMcZRZV15VZgEPhEOd2we2w6NdfpZH2gDEwCQFo1rS.AY7Il05vDMJzvlxPkWAYbYyJKieB9o3p1t3MIQBzxcBrihHtHCiQWUxlQpwPpme6NKa6aybH8IgPOhScH2m1jJ5SsZ90n99krcIaRapw8b4K6vYE397V.jF0LKJv1Ya65j0skrMhIx3bEcoBdXMgsfDgLFaYtamZM36vh4+QzH5V9D4fbnZfhhIWh66JQrjJpPCpua0tldDBzR09NhQicDW0rB0k1ideGxkTSf6Kgt+vXjAg2nC.ub5vKqF7NDHYnAowhgzkMq4DRCD8mQhmKXVlIHgd1faWGJw7hF4mF0r.G3fIlto81jRgvfdRXM+BYmBO2BYyrzDomHM7.9+HA9U1gvFNi3mCeabWwqSDE3MC3LXf00im95YVRSjkaIDb1QKSx7RgfmIReqaAqBkIvg7VBJiLQ5XsNcDQnl3Awzs7ZwbDTNypdl8lHMFd.vlRsla34AbCK4bYWJszHfISgAMuYCZDVFKERY0w1LW7Jg16He2GTYDV5MvhFDbEaGbMe9NwRF+epG1pq4HMhGY62hXkAe6aiykIlk8T3.WWB1UCscofIVBBqsdlU11KN+LEKUp3WlYJ7ryCt3rSu3jvhQijJ6dDZ8FBqLSoXbwEjrBLNyzYmrKKOl5JZ.q2svytPV7Mw4jpXgIOnFddlk5h38SmJEwOh.+rG7WJEthSkrx9jRkVT8.d9To1OF4X3UOdH1Z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nosSH+ENw22nLUabEEvtYpupTJyJxw3dWznoY1oyJucJ5Kbbj24vMygPGtLybJjY1SgLycJjY9SgLKbJjYwSgLewwJi7Crc2VBdy3Xdfb+6NGYbA8AlFqNX1j9mCSsVkYtj1cCFfrhPgdA7hLW8rmRs78eKdjDO.e01lri9X0ZBlj9EVdWADTuUKAQ6VkiOIIN8EcLF0W+wnQ8rOFMpm+AqQUoZQ0WQwvnHyFNRHl5eALT0IxM
-
-
I don't have a problem on my MacOS VM. Are you using OpenGL?
-
@d-healey No OpenGL here
I'm on MacBook Air, Intel i5
-
@Natan I tried here:
openGL enabled => works like a charm
openGL disabled => laggyTry to enable openGL in the preferences and restart Hise
-
I wouldn't call this a bug, you just happen to write super inefficient graphics code. Drawing a line with an angle with a gradient is likely to mess up the rasterizer of the software renderer while the OpenGL renderer has a different pipeline.
There's nothing I can do here except for suggesting to write faster code.