Plotter Oscilloscope Optimization
-
Hi everybody, I achieved to use a Floating Tile plotter as an oscilloscope showing me the modulation of a HardcodedFX. Everything seems to be fine in HISE, but when I compile and try it in my DAW, the UI is very laggy. I supposed it comes from this plotter, because the .vst is enough smooth if i compile it without the Plotter. Is there something to do to improve calculation and CPU usage for this, like creating a downsampling buffer for my HardcodedFX or refreshing the Plotter less often ? I'll explore any clue from you, and would be happy to provide you more informations if needed.
Thanks a lot
-
@theovintagesynth there exists some issues with the analyzers and how they operate in the DAW. I've posted a lot about this topic, the best answer I can give you is resize the display buffer so it is a bit smaller. This will definitely increase performance. The script here can be adapted to apply to the oscilloscope:
FFT Analyser Path - Need help drawing the magnitude to height
I made some progress towards solving the UI lag from the FFT. @Consint & @oskarsh @Oli-Ullmann this may be of some interest to you. Basically I found that if...
Forum (forum.hise.audio)
After that, there are a lot of smaller improvements you can try (reduce drawing points, slower timers, etc.) which can help reduce CPU usage. I've talked about them before here (specifically about the oscilloscope):
-
Thanks a lot for your answer. Very helpful to explore your code and try some stuff.
I dug a bit through those topics that you sent. There are very interesting as well, they all use a different way than me. I'm using a Floating Tile plotter and not a Script Panel. So, it's probably a dumb question but are every parameters (resizing display buffer, timer etc...) available only in a Script Panel ?