553 views
in GUI Development by
Hi,

We are developing our application in IMXRT1050 with Embedded Wizard 9.2

We are using Filled + Arc Path which intersects with some images and text.

The bounds of this Filled Path will intersect with the surrounding images, text as well as the background image. So whenever this filled path is updated all the elements which are intersecting will also updated/invalidated due to which there is a drop in performance i.e FPS.

Anyway to improve this? Is it possible to have multiple software layers such that in this case Filled path can be in one layer and other intersecting elements can be in other layer . So that update in one element will not refresh the other.

 

Best Regards,

Preethi S,

Bosch India

1 Answer

0 votes
by

Hello Preethi,

first of all, it is important to understand, that it is not sufficient to update a single foreground GUI component like a filled path (or any other graphical object) - it is always necessary to draw all visible components on the screen according their Z-order from back to top. This is necessary to support semi-transparency between GUI components.

If you have many different items within the background and you want to avoid that these are drawn each time the foreground path has changed, you can arrange all background images and decorations within one GUI component and set Buffered=true. In this case an internal off-screen bitmap is allocated and all members are drawn into this bitmap. See chapter control the visiblity of nested components.

Each time the foreground path object has changed, only the prepared off-screen bitmap is transferred into the framebuffer instead of drawing all members again.

Of course, this technique requires additional memory to allocate the off-screen bitmap. The performance will only increase, if your background contains a lot of semitransparent and overlapping objects or if there is scaling, rotation, etc. used. In case you have just a simple background image - it will not change the performance.

Best regards,

Manfred. 

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...