summaryrefslogtreecommitdiffstats
path: root/src/api/studio3d/q3dsdatainput.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update and fix documentationJanne Kangas2020-02-061-26/+14
| | | | | | | | Also move d_ptr variable to private in Q3DSDataInput. Task-id: QT3DS-4050 Change-Id: I91ded90a413e0e9f78b0d866823a686357e4b908 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Discard datainput set value if it is the same as the last committed valueJanne Kangas2019-08-151-17/+28
| | | | | | | | | | | | | | | | | Store the latest value that was committed (sent out to runtime engine) and only create setValue call when the incoming value is actually different. Combined with batching, this should eliminate most performance impacts from client-side API spamming. Also, add "force" parameter to setValue C++ interface. It can be used to force a value change to runtime engine even if the value would be otherwise discarded. Change-Id: Iedd4df89a0d45b79f306dfd384745a94df8f26be Task-id: QT3DS-3861 Task-id: QT3DS-3842 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Batch setDataInputValue calls also on C++ sideJanne Kangas2019-08-131-3/+3
| | | | | | | | | | | | | | Collect/cache all set value calls to a batch within a frame, effectively discarding all except the most recent value(s) within a frame period. This decreases the performance impact of high-frequency value setter calls from external sources. Also, remove deprecated functionality from internal datainput setValue interface. Change-Id: I4165c97f96a4fe25796eb27d53802fbee507aa6c Task-id: QT3DS-3857 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Batch datainput value changes per-frame for QML contextJanne Kangas2019-08-091-0/+7
| | | | | | | | | | | Group all changes in datainput values on QML side together and send a single per-frame command. This ameliorates the performance cost of frequent value updates, especially for projects with large amount of datainputs. Change-Id: Ib398f405dedb50ad3f5429f42024b3f490114dab Task-id: QT3DS-3759 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Initial OpenGL runtime documentation structureMats Honkamaa2019-06-191-4/+15
| | | | | | | | | | Copied from Qt3D runtime docs with some modifications. Task-number: QT3DS-3561 Change-Id: I67fc9bc59290b34e788cf4a79676c9e04e634979 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Pasi Keränen <pasi.keranen@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Remove duplicate documentation from datainputJanne Kangas2019-06-141-44/+27
| | | | | | | Change-Id: Ie23dbee91d129a983d7bfd2700a5fa5a851be641 Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io> Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
* Make datainput metadata keys constant Q_PROPERTYJanne Kangas2019-06-111-7/+8
| | | | | | | | | | Remove invokable datainputKeys and make it a datainput property instead. In OpenGL RT this is a constant property as metadata is read-only property. Also update qmldatainput example. Change-Id: Ic9037f831b4072481ad5b2fac78ecc68db6808b2 Task-id: QT3DS-3625 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Long live the slayer!Pasi Keränen2019-06-071-0/+451
Initial commit of OpenGL Runtime to repository. Based on SHA1 61823aaccc6510699a54b34a2fe3f7523dab3b4e of qt3dstudio repository. Task-number: QT3DS-3600 Change-Id: Iaeb80237399f0e5656a19ebec9d1ab3a681d8832 Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>