Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Component in pure QML or C++ : What is the fastest rendering solution?
Forum Updated to NodeBB v4.3 + New Features

Component in pure QML or C++ : What is the fastest rendering solution?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 697 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arnaud-DUTARTRE
    wrote on last edited by
    #1

    Hello,

    I have to develop 2D components (axis, gradients,...) and have them working on Android/Ipad.
    I have already developed some in C++ and others (simple ones) in QML.

    I would like to get experience feedback about people having doing such project on tablet and what was the fastest rendering solution, if difference there is...

    Best Regards
    Arnaud

    “Sometimes I lie awake at night, and ask, 'Where have I gone wrong?' Then a voice says to me, 'This is going to take more than one night.'” C.M. Sc...

    1 Reply Last reply
    0
    • jeremy_kJ Offline
      jeremy_kJ Offline
      jeremy_k
      wrote on last edited by
      #2

      Eventually pure QML ends up invoking code written in C++, perhaps with GLSL and assembly language thrown in. You'll never beat going directly to the source with added layers of indirection.

      Whether the added cost of convenience is worth the performance penalty is something for you to decide. If you have access to target devices, benchmark a few implementations and decide which works for the use case. If they're close enough to equivalent, consider which is easier to work with for the likely set of maintainers. Another angle is to examine which is easier to adapt for reuse.

      Sorry about the soul searching answer.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved