2021-07-15 07:02 PM
Hi,
I am designing the transition of screens. How to write the transition function in user code graciously? I just generate the unused interation in the screen which does the action of changing screen and call the action generated "gotoScreenSildeTransition". I don't think it is an elegant style. By the way it does the transition in a low frame rate if a big image with alpha channel in it. So how can I do to increase the frame rate? Now it seems that setting the image invisual before transition start is useful.
/forgive my poor english.hhh
/JJLin
2021-07-19 01:32 AM
Hi,
Concerning writing the transition "graciously" have a look at how the transition is implement in FrontendApplicationBase.cpp and do the same with your custom transition in FrontendApplication.cpp.
For the transition it is the mcu that renders it, so for big images with alpha value it could struggle a bit. Using a double framebuffer could help if it is not already the case. Making the images slowly invisible by reducing the alpha value before a transition is usually what I recommend as well. What you could also try is to reduce the speed of the transition by changing the amount of steps in CoverTransition.hpp for example.
/Romain