Skip to main content
Dd.21
Associate III
January 7, 2021
Question

How to use a TextureMapper with Z_ROTATION whitch will not delay screen tick event.

  • January 7, 2021
  • 1 reply
  • 1156 views

There is a screen view with a texturemapper and handTickerEvent. I want to use texturemapper to do z-axis animation, and at the same time time and display it through handTickerEvent. However, the timing showed a serious delay.

There is some core code.

textureMapper.setupAnimation(AnimationTextureMapper::Z_ROTATION, 9.0/18.0 * 1, 60, 0, EasingEquatins::cubicEaseInOut);
//...
textureMapper.startAnimation();
 
void Screen1View::handleTickEvent() 
{
 ticker++;
 if(ticker %60 == 0) 
 {
 time--;
 Unicode::snprintf(time_buffer, 3, "%d", time);
 textArea_time.invalidate();
 }
}

    This topic has been closed for replies.

    1 reply

    MM..1
    Chief III
    January 7, 2021

    How is serious delay? And how big is image.

    Dd.21
    Dd.21Author
    Associate III
    January 8, 2021

    It depends on how long does textureMapper's animation take. It takes 1 seconds in my code. And image_size = 2.54KB, image_width_height = 52 x 62.

    The animation will start again when last animation ended.

    MM..1
    Chief III
    January 8, 2021

    I still dont have reply how is serious delay , But for anim you need LTDC mode and double buffering usw...