cancel
Showing results for 
Search instead for 
Did you mean: 

Is using an animation class more efficient than manually moving an image?

knight_8
Associate

Hi!

I'm currently working on a game for a st32U5 which is 80 MHz and I don't believe has any H.W. acceleration (right?) and I want to minimize the CPU workload.

I'm currently manually making an image move, by changing the position at 30Hz. I'm considering using an animation class, but I am worried that If I use the animation class it would then move at my touchGFX FPS (60Hz) and cause more CPU workload.

If using an animation is more efficient, then I suppose I won't worry about it.

 

3 REPLIES 3
Osman SOYKURT
ST Employee

Hello @knight_8 ,

Which STM32U5 are you using? For instance, the STM32U5G9ZJ uses Neochrom as accelerator and therefore could suit your technical needs. And yes, I confirm that the animated image widget in TouchGFX Designer is accelerated by the graphic accelerator as described in our documentation. More details about Neochrom can be visible here.

Osman SOYKURT
ST Software Developer | TouchGFX

Hi Osman thank you for the reply, I am currently using a STM32U585QIIx

Hello @knight_8 ,

For STM32U585QIIx, the Chrom-ART Accelerator (DMA2D) is available for enhanced graphic content creation (the NeoChrom (GPU2D) is not available). 

Osman SOYKURT
ST Software Developer | TouchGFX