Scroll Performance Drop in Scroll Wheel After TouchGFX 4.24/4.25 → 4.26 Regeneration
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)
Symptoms
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.
What Changed
Regenerated via CubeMX, replacing:
- nema_hal.c
- OSWrappers.c
- STM32DMA.cpp
- Other target files
Unfortunately wasn't tracking these in git.
What Hasn't Changed
- FreeRTOS (same version, no updates)
- HAL drivers (git tracked, unchanged)
- GPU2D Command List Size (still 8192) [I've tried to increase it to 16k but still, the same issue)
#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 */- .icf and memory allocation
- Not using setFrameRateCompensation(true);
Question
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?
