Skip to main content
RGajd.1
Associate
Jun 7, 2020 9:19 AM UTC
Solved

What is handleTickEvent() period?

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

This topic has been closed for replies.
MMoon.1
MMoon.1Best answer
Visitor II
Jun 8, 2020 2:06 AM UTC

Hi Gajda,

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

Regards,

Badreddine

2 replies

MMoon.1
MMoon.1Best answer
Visitor II
Jun 8, 2020 2:06 AM UTC

Hi Gajda,

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

Regards,

Badreddine

RGajd.1
RGajd.1Author
Associate
Jun 8, 2020 6:03 AM UTC

Hi Bedreddine,

It explains everything, thanks!

Regards,

R. Gajda