MPA

From the to-do list: MPA V1.0: Older issues and tasks

✔ Optimize and smooth home page slideshow

Comments

Pierre henri Seylan on June 27, 2018:

In the sound library home page, an image slideshow is displayed at the top of the page.

This task is about improving the overall implementation of this component.



1. Optimize CPU:

When the home page is visible, the CPU load of the app is jumping pretty high.
I suspect that this slideshow component has been implemented using the wrong JUCE functions and thus is using way too much resources.
It's also possible that it simply needs to be optimized but not re-implemented.

We should find out what is the root of the high CPU load in the home page (also if not from the slideshow), and re-implement or optimize the slideshow depending on the root of the issue.

2. Making the slideshow animation smoother:

Currently, the animation used is not so smooth and it looks like the images are "jumping" instead of gliding smoothly.
It is possible that after the fixes of the point 1, it will behave smoother.

You should compare with the slideshow of the Itunes store and experiment with the various parameters of the animation to try achieving the same result  in term of fluidity of the animation.

Karim Alabtakh on June 30, 2018:

-The cpu usage is related to infinite paint loop of Popular sounds. (Fixed)

-While profiling I have found another paint loop related to play sound files UI. I have fixed it but it was very strange implemented and I ignored some parameters. so let me knew if play button in list view work as needed.

-The slide show use currect functionality, there is only one function for that. btw I have changed but not commited some parametes, so let me know if it work as you want (there are 3 parameters duration, start speed (0-1), end speed(0-1))

-Note: I have disabled (not commited) blured image loader in this build because it effect on cpu usage.

Karim Alabtakh on July 25, 2018:

I am waiting for your response to commit the "not committed" slideshow changes.