Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

Placement of displayio elements for efficient updates?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Placement of displayio elements for efficient updates?

by kevinjwalters on Wed Apr 29, 2020 10:07 am

Can the geographical placement of objects on the screen using displayio library affect performance for applications which want to update the screen frequently? E.g. for data updating at 10-100Hz is there a difference between:

Code: Select all | TOGGLE FULL SIZE
BIG TEXT SHOWING DYNAMIC DATA
GRAPH SHOWING SAME DATA
STATIC TEXT


and the re-ordered

Code: Select all | TOGGLE FULL SIZE
BIG TEXT SHOWING DYNAMIC DATA
STATIC TEXT
GRAPH SHOWING SAME DATA


I'm wondering if the second option causes larger area writes to the screen from possible coalescing of the areas updated? Also, is it important to avoid even 1 pixel overlaps between static and dynamic objects for similar reasons?

kevinjwalters
 
Posts: 627
Joined: Sun Oct 01, 2017 3:15 pm

Re: Placement of displayio elements for efficient updates?

by tannewt on Wed Apr 29, 2020 11:36 am

It depends on how your text is implemented. Are you using one TileGrid for everything or a Label which uses a TileGrid per character?

Note that the display is limited to 60Hz updates by default. You can change this rate by switching to manual refresh and providing a target frames per second to refresh.

tannewt
 
Posts: 1671
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.