What is handleTickEvent() period?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-07 2: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.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-07 7:06 PM
Hi Gajda,
The tick event is your VSYNC and generally it is around 16ms.
Regards,
Badreddine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-07 7:06 PM
Hi Gajda,
The tick event is your VSYNC and generally it is around 16ms.
Regards,
Badreddine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-07 11:03 PM
Hi Bedreddine,
It explains everything, thanks!
Regards,
R. Gajda
