I need your suggestions.
I know no one likes people who use images for animation or rotating knobs but i am still one of those people who use images
I really need your help to create the best and fastest and safest template to manage these images. Generally i create a new class for such knobs. I use imageCache to load images. Then i put these images into an image array. I initialize it only once in my constructor. In my drawslider method i call the corresponding index of that image array according to my slider value. For knobs this works well for me. None of those images will be refreshed as long as the slider values are not changed.
But when i start using the same array filled with a LED images (generally 20-30 images) from turned off situation to full bright situation, and try to call the images by using a timercallback,(it does not stop blinking until the plugin is closed) it becomes a very fragile system. Timer callback is not very accurate. I have experienced this many times. When i try to click on a button successively it effects the callback or paint function of the led class.
I can’t expect anyone to spend his time and review my whole code.
So, Could you please tell me a little bit about your methods or technics to manage animations (for example blinking animations) with images in juce? Which class is the better to store such images?
In some cases, I also experienced that the repaint or paint functions of my components are not being called until i move my mouse cursor over them or their components. This generally happens when i try to draw an image(s) successively.
Is there anyone else that experienced at least one of these problems? Or similar to these problems?