cancel
Showing results for 
Search instead for 
Did you mean: 

What is handleTickEvent() period?

RGajd.1
Associate II

Hi,

This is the code snippet to animate containerAF1:

void mainScreenView::handleTickEvent() {

static uint32_t startMove = 0;

startMove++;

bool pr;

if(startMove<40) pr = true;

else pr = false;

containerAF1.setVisible(pr);

containerAF1.invalidate();

if(startMove>80) startMove = 0;

}

I expected the containerAF1 to be visible every 40ms.

But it's visible about every 1second.

So, how often handleTickEvent() is called?

Are there any reasons why handleTickEvent() can be called less frequently than 1ms?

Regards,

Remigiusz Gajda

1 ACCEPTED SOLUTION

Accepted Solutions
MMoon.1
Associate II

Hi Gajda,

The tick event is your VSYNC and generally it is around 16ms.

Regards,

Badreddine

View solution in original post

2 REPLIES 2
MMoon.1
Associate II

Hi Gajda,

The tick event is your VSYNC and generally it is around 16ms.

Regards,

Badreddine

RGajd.1
Associate II

Hi Bedreddine,

It explains everything, thanks!

Regards,

R. Gajda