Skip to main content
RGajd.1
Associate
June 7, 2020
Solved

What is handleTickEvent() period?

  • June 7, 2020
  • 2 replies
  • 1220 views

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.
Best answer by MMoon.1

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
June 8, 2020

Hi Gajda,

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

Regards,

Badreddine

RGajd.1
RGajd.1Author
Associate
June 8, 2020

Hi Bedreddine,

It explains everything, thanks!

Regards,

R. Gajda