Mask does not scale properly on HiDPI or Retina display
-
Is there an update to this in 2024?
It seems to still be an issue. I'm using a mask and even just zooming the view in and out inside hise, the mask keeps it's absolute pixel dimensions, completely moving around within my interface relative to everything else. This bug makes using masks completely pointless.
-
@whoopsydoodle nope, still a bug. You could refer to the scaling ratio as a dimensions modifier when drawing your mask.
Though that's only a bandaid.
-
does this mean masks are basically unusable?
i really need this feature.. -
@prehm Unfortunately yes, like blur and maybe some other graphic functions...
-
@ustk
That’s a bummer.
What’s wrong with blur? Seemed fine the one time I tried it -
@prehm Very CPU heavy like shadows, except text shadow because it uses a different algorithm that we wait to be applied to other functions. I think the blur has a strange behaviour when scaling too...
-
@prehm It uses the old JUCE routine for drawing blur, which is about 100x slower than the melatonin version that HISE is still missing, and it's still done on the CPU.
If you want fancy graphics and visual effects, use a WebView and enjoy all the modern frontend tech.
-
@aaronventure
Cool, thanks for the hint.
I am new to programming so I‘ll have to read into that.. -
It uses the old JUCE routine for drawing blur, which is about 100x slower than the melatonin version that HISE is still missing, and it's still done on the CPU.
FYI, I have replaced the shadow functions in the scripting Graphics object with the melatonin routines in the upcoming batch of commits.
But if you want to be 100% accurate, the melatonin shadow is also rendered on the CPU but it's highly optimized withs lots of dirty tricks. The default JUCE implementation (or my failed attempt of replacing it with another algorithm) is just unoptimized code.
-
@Christoph-Hart So the shadow is optimised, but not yet the blur, right?