Skip to content

Optimise GUI speed

This application note discusses options to optimise the speed of the GUI.

The table below compares the three modes available for the check() function of the button element. It shows what is changed on the display and when the event is raised.

Mode Initial state Touch pressed Touch released
Normal

Event
Instant Event
Direct

Event

Configure

There is no configuration as the check mode is set as a parameter of the check() function.

Use

The check() function receives checkNormal as parameter.

bool result = myButton.check(checkNormal);

The normal mode provides the richest visual experience with a cinematic sequence.

Start, press, release

The check() function receives checkInstant as parameter.

bool result = myButton.check(checkInstant);

The instant mode is optimised for speed and provides no visual feed-back.

As an alternative, haptic feed-back ensures a good user experience.

Start, press

The check() function receives checkDirect as parameter.

bool result = myButton.check(checkDirect);

The direct mode offers a good compromise between user experience and speed, with a simplified cinematic sequence.

It is recommended when the button triggers the display of a new page.

Start, press, release