Skip to main content
Bob Bailey
Senior
Jan 28, 2020 11:10 PM UTC
Solved

Info about cacheable container

This is one of the big features in 4.12 according to the release notes. How is it enabled/controlled/configured?

Any example code? How about just the source code for this:

https://vimeo.com/365563335

Secondary question: What improvements, enhancements are in the 4.13 version?

Thanks!

Bob

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Jan 29, 2020 9:50 AM UTC

Here's an article:

https://touchgfx.zendesk.com/hc/en-us/articles/360007902520-Achieving-better-performance-with-CacheableContainer

I'll see about digging out the source code for that demo you're showing.

Changelog for 4.13.0 attached. Overall: Introduction of X-CUBE-TOUCHGFX 4.13.0 with TouchGFX Generator for CubeMX 5.5.0-> for TouchGFX HAL Development, serious TextureMapper performance improvements and optimizations to code size, improvements to Arabic text rendering, bugfixes and performance in designer.

And more =) Take a look

/Martin

5 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Jan 29, 2020 9:50 AM UTC

Here's an article:

https://touchgfx.zendesk.com/hc/en-us/articles/360007902520-Achieving-better-performance-with-CacheableContainer

I'll see about digging out the source code for that demo you're showing.

Changelog for 4.13.0 attached. Overall: Introduction of X-CUBE-TOUCHGFX 4.13.0 with TouchGFX Generator for CubeMX 5.5.0-> for TouchGFX HAL Development, serious TextureMapper performance improvements and optimizations to code size, improvements to Arabic text rendering, bugfixes and performance in designer.

And more =) Take a look

/Martin

DDi S.1
Associate III
Jul 13, 2023 11:05 AM UTC

HI Martin, but is it possible that there is no documentation with an example for such an important thing as cacheable containers? Can you provide the sample video code that is on the net? Please, it's urgent!

Bob Bailey
Senior
Jan 30, 2020 5:32 PM UTC

can the swipe container be cached? I was thinking it would just take re-creating the swipe container code as its own separate class, based on the cacheable container.

I guess the first step is to implement all the manual steps for assigning the caches for regular screens with containers , the article has a bare-minimum of detail (complete, but with no example code, so where to put the cache updates and stuff like that is left to the (inexperienced (with TouchGFX, not so much C++) ) user )

once that works, the lessons learned can be applied to creating the cacheable swipe container class.

Bob

Martin KJELDSEN
Principal III
Jan 31, 2020 9:04 AM UTC

Hi Bob,

We're currently writing doc for a new platform, moving away from zendesk, so i expect we'll update the article to be more thorough. I agree that it only covers some parts.

You can cache any container, yes.

/Martin

Bob Bailey
Senior
Feb 17, 2020 6:27 AM UTC

@Martin KJELDSEN​  were you able to locate the source code for that demo?