Component in pure QML or C++ : What is the fastest rendering solution?
-
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 -
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.