cancel
Showing results for 
Search instead for 
Did you mean: 

How to cache cachable container and does it affect the render speed of screen transitions?

manto.1
Senior

I am trying to make screen (slide) transition smoother using cachable container. I am trigerring slide transition with following line:

application().gotoScreen2_BatteryScreenSlideTransitionWest() 

I am not using transition container.

I tried to use cachable container for some elements that are generaly static. I assume this would make the stransition smoother. But there is no improvements in rendering time.

Normaly rendering is done in less then couple of miliseconds. But during the transition rendering time reaches almost 50 ms.

0693W00000aILw1QAG.png

void Screen1_SpeedView::setupScreen()
{
    Screen1_SpeedViewBase::setupScreen();
	gaugeBackground1.setMaxRpm(presenter->getValI32(DATA_MAX_RPM));
 
    dynamicBitmap1 = Bitmap::dynamicBitmapCreate(container2.getWidth(), container2.getHeight(), Bitmap::RGB888);
    container2.setCacheBitmap(dynamicBitmap1);
    container2.enableCachedMode(true);
    container2.updateCache();
 
    initializeScreen();
}

https://support.touchgfx.com/4.21/docs/development/ui-development/scenarios/achieving-better-performance-with-cacheable-container

0 REPLIES 0