Skip to main content
manto.1
Associate III
March 7, 2023
Question

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

  • March 7, 2023
  • 0 replies
  • 975 views

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

This topic has been closed for replies.