2026-01-12 2:29 AM - edited 2026-01-12 8:15 AM
MCU: STM32H7S7L8H6H
Issue: Choppy scroll animations after regenerating TouchGFX/target/generated in CubeMX files with TouchGFX 4.26 (previously 4.24.1 or 4.25)
Scroll wheel with custom containers (toggle buttons + text) now shows low FPS when swiping. The same widget was way smoother before regeneration. I have a device with old generated files still running smoothly, confirming the regression is in the regenerated target code (check video, the smoother one is the bottom one).
Unfortunately, I haven't git the TouchGFX/target/generated because I thought it was being generated by TouchGFX Designer and not CubeMX, so I have no idea what code it was running before. Sure thing is, the scroll wheel logic in the GUI folder is the same for both things.
I was already using TouchGFX Designer updated to 4.26 when everything was smooth so, I think the file generated by it are ok.
Regenerated via CubeMX, replacing:
Unfortunately wasn't tracking these in git.
#define RING_SIZE 1024 /* Ring Buffer Size in byte */
#define NEMAGFX_MEM_POOL_SIZE 24320 /* NemaGFX byte pool size in byte */
#define NEMAGFX_STENCIL_POOL_SIZE 619520 /* NemaGFX stencil buffer pool size in byte */What could have changed in TouchGFX 4.26 generated target files to cause this performance drop? Or what part of the code was changed to have this kind of behavior? .icf file and the memory allocation are the same as well.
Has anyone experienced similar issues with TouchGFX 4.26 or similar problems?
Solved! Go to Solution.
2026-01-12 11:34 PM - edited 2026-01-14 11:57 PM
After various tweaks, I've found out that reducing the size of the scroll wheel from 800x313 to 629x313 (I've found that the containers in the scroll wheel were using a bunch of transparent area that was not necessary), so a reduction of 22% of the area of the scroll wheel does improve the performance significantly.
That still doesn't explain the drops in performance because the two boards run the same software, despite the updated TouchGFX code in the target-generated folder.
Has there been an update targeting scrool wheel from 4.24.1 to 4.26?
I'm just seeing "Fixed bug in ScrollableContainer where scrollbars had wrong size."
On another note, I've also increased memory for TouchGFX in the FreeRTOS from
.stack_size = 4096 * 4,to
.stack_size = 4096 * 8,And performances have increased significantly and no more errors occured
2026-01-12 11:34 PM - edited 2026-01-14 11:57 PM
After various tweaks, I've found out that reducing the size of the scroll wheel from 800x313 to 629x313 (I've found that the containers in the scroll wheel were using a bunch of transparent area that was not necessary), so a reduction of 22% of the area of the scroll wheel does improve the performance significantly.
That still doesn't explain the drops in performance because the two boards run the same software, despite the updated TouchGFX code in the target-generated folder.
Has there been an update targeting scrool wheel from 4.24.1 to 4.26?
I'm just seeing "Fixed bug in ScrollableContainer where scrollbars had wrong size."
On another note, I've also increased memory for TouchGFX in the FreeRTOS from
.stack_size = 4096 * 4,to
.stack_size = 4096 * 8,And performances have increased significantly and no more errors occured