0

Is it possible to update the property "position" other than QQuick3DObject::setProperty ?

myQQuick3DObject->setProperty("position", QVector3D{x, y, z});

I am in a context where I receive from udp socket a large flow of updates per seconds for this property, and I can not help thinking that looking for a property in a list is a real bottleneck.

Intuitively, I tell myself that I'm not doing it the right way. QQuick3DNode class could have met my need but is private.

bitmap kid
  • 181
  • 7
  • https://doc.qt.io/qt-6/qtquick-performance.html First paragraph. – Alexander V Aug 16 '23 at 17:16
  • If you are receiving a large flow of updates, is it possible to skip some of them? Also, alternative to setProperty() the documentation says you can also use `QQmlProperty(mQQuick3DObject, "position").write(value);` I dunno if you will get a performance improvement with the latter. – Stephen Quan Aug 17 '23 at 05:18

0 Answers0