2020-06-07 02:19 AM
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
Solved! Go to Solution.
2020-06-07 07:06 PM
Hi Gajda,
The tick event is your VSYNC and generally it is around 16ms.
Regards,
Badreddine
2020-06-07 07:06 PM
Hi Gajda,
The tick event is your VSYNC and generally it is around 16ms.
Regards,
Badreddine
2020-06-07 11:03 PM
Hi Bedreddine,
It explains everything, thanks!
Regards,
R. Gajda