BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Render the screen only when there is a change in ESD  (Read 8656 times)

Cyrilou

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Render the screen only when there is a change in ESD
« on: March 19, 2021, 09:56:13 AM »

Hi,

In my screen I have multiple variables which are connected to text property of ESD labels. When render is called, text is refreshed each time, even if variable value doesn't change with spi transferts useless.
How to avoid this?
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 745
    • View Profile
Re: Render the screen only when there is a change in ESD
« Reply #1 on: March 22, 2021, 12:13:07 PM »

Hello,

Can I just clarify your question. Are you asking why there are SPI transactions for the text on the screen when render is called (even when you haven't changed the text to be displayed)? If I am mistaken please elaborate on your issue.

In general, for every screen update issued to EVE the entire display list used to create that screen must be re-written to the IC. For example if you have 5 labels with text, and you change the text to be displayed on one of these 5 labels, when updating the display all 5 labels must be written back into the display list and sent to the EVE IC via SPI.

Best Regards,
BRT Community
Logged

Cyrilou

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Render the screen only when there is a change in ESD
« Reply #2 on: April 07, 2021, 02:16:53 PM »

If nothing changes between two update frames, nothing would be send by SPI.
I say that for exported esd_loop function that would blocked waiting a semaphore in a thread. I could  unlock it when there is an update to do or an animation with multiple updates until it is completed.
Logged