cancel
Showing results for 
Search instead for 
Did you mean: 

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

Dd.21
Associate II

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();
    }
}

3 REPLIES 3
MM..1
Chief II

How is serious delay? And how big is image.

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.

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