Layout vs Graphics

Posted on
  • I've read about Layout. Its capabilities are impressive!
    But I still have a question. What would be faster, smaller and overall more efficient: Layout or direct Graphics calls?
    Let say I am doing digital watch and update only the digits that are changing.

    Layout code is 14K, is it compacted when loaded into device?

  • Hi,

    Yes, the Layout code ends up compacted, and when I'm happy it's stabilised I'll start building it into the Bangle (improving performance) and may even convert it to native code in which case it'll likely be faster than direct graphics calls.

    However, until that point direct Graphics calls will always be faster if you're willing to spend time ensuring you only draw what's needed - in your case, making sure you only update the digits and nothing else.

  • Thank you Gordon! I see it will be better using Layout then.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Layout vs Graphics

Posted by Avatar for Mark_M @Mark_M

Actions