Skip to content

Optimise GUI speed

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

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

Mode Initial state Touch pressed Touch hold Touch released
Normal


Event
Instant
Event
Direct

Event
Special

Event

The table below compares the four 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 hold Touch released
Normal


Event
Instant
Event
Direct

Event
Special

Event

Only the button, check-box, flip-flop button and radio-buttons elements include the touch hold state and implement special check mode. Other elements do not feature the touch hold state.

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

The check() function receives checkSpecial as parameter.

bool result = myRadioButton.check(checkSpecial);

The special check mode offers a faster variant of the normal check mode with a simplified cinematic sequence for the check-button, flip-flop button and radio-buttons elements.

Start, press, release