• AVR Freaks

Hot!Aria Screen update problem...

Author
tporter905
Starting Member
  • Total Posts : 16
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
2019/03/27 06:48:15 (permalink)
0

Aria Screen update problem...

I am trying to use the Arc widget in aria to show a progress bar, around a time counter. It all works great, except when I update the arc using the setcenterangle function, the entire area redraws and I see the huge gray box first before the arc redraws. How do I get the arc to update without redrawing the whole area and just the delta? I am using the graphics composer to create my screens...
 
Thanks,
 
Tom
#1

6 Replies Related Threads

    kuku
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2012/03/03 08:05:54
    • Location: 0
    • Status: offline
    Re: Aria Screen update problem... 2019/03/27 07:37:19 (permalink)
    0
    Double buffering, background type and optimization flag. You play with this?
    post edited by kuku - 2019/03/27 07:38:52
    #2
    Ed@Microchip
    Super Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2017/04/06 09:39:29
    • Location: 0
    • Status: offline
    Re: Aria Screen update problem... 2019/03/27 08:33:10 (permalink)
    0
    Currently, the arc widget will invalidate the whole widget area when the center angle is changed. This means that the whole widget area will be redrawn. It may be possible to optimize the widget so that it only redraws the delta, but that is not supported at this point.
     
    As kuku mentioned, you can 'hide' the redraw by double buffering if your platform can support it (i.e., has enough memory for double buffering).
    #3
    tporter905
    Starting Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: Aria Screen update problem... 2019/04/02 10:44:37 (permalink)
    0
    I decided to change it to a circular slider widget, which works much better. I also removed the white background jpg and went with a standard white background generated by the graphics composer, which helped a lot. It is close, but I can still see some redrawing. I have been copying the aria showcase reloaded circular slider demo, as it works really well, however have not been able to figure out why that works great and mine does not. How do I verify that double buffering is turned on? I cannot find it in the documentation, or is it something I have to write myself? I am using the harmony 2.06 library...
     
    Thanks,
     
    Tom
    #4
    Ed@Microchip
    Super Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2017/04/06 09:39:29
    • Location: 0
    • Status: offline
    Re: Aria Screen update problem... 2019/04/02 10:48:14 (permalink)
    0
    Hi Tom,
     
          What is your hardware setup (device, display, development board)?
     
    Thanks,
     
    Ed
    #5
    tporter905
    Starting Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: Aria Screen update problem... 2019/04/02 11:24:12 (permalink)
    0
    Currently using the DM320008-C-ND with MEB-II, we plan on using this type of setup on our end product so if I can get it working on your PIC32MZ demo board, that would be great.
     
    I keep seeing double buffering in the docs, keep checking the aria showcase reloaded, but that project doesn't have the double buffering enabled in any way I can find...
     
    Thanks,
     
    Tom
    #6
    tporter905
    Starting Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: Aria Screen update problem... 2019/04/02 11:44:59 (permalink)
    0
    I just found the double buffering and it is working great, thanks, I set the buffer count to 2 under the layer properties in the graphics composer...    Took a long time to find that in the docs...
     
    Thanks,
     
    Tom
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5