summaryrefslogtreecommitdiffstats
path: root/src/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leak when adding data inputs to dynamic elementsv2.4.0-rcMiikka Heikkinen2019-06-241-36/+43
| | | | | | | | | | | | | Removed dataoutput matching for datainputs when dynamic elements were added as datainput targets. Since the dataoutputs are working only on the last added element/property for each dataoutput, allowing dynamic elements to change this would break any existing bindings. Task-number: QT3DS-3690 Change-Id: I63096f9f22f137dddb5133d986537f29906cc836 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
* Fix string type data inputs and setAttribute leaking memoryMiikka Heikkinen2019-06-202-2/+4
| | | | | | | | | | | | Two leaks were fixed: 1 - String table now uses separate storage for dynamic strings 2 - Glyph cache is deleted if not used for current frame Task-number: QT3DS-3686 Change-Id: Ib4cf2c61c5301a030039fef51b6d00b06d988c45 Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
* Ignore start time in time graph node if it hasn't been setJari Karppinen2019-06-191-1/+4
| | | | | | | | | | | | Animated custom materials only have the endtime attribute in .uip files. This causes the start time in time graph nodes not to be updated. The value is left as the default QT3DS_MAX_U32 which causes the element to be excluded from animation. Task-number: QT3DS-3682 Change-Id: I6eec94ea222d4d830d4e793429c37888e9f097e5 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Fix preload/unloadSlide component elementPathv2.4.0-beta4Antti Määttä2019-06-181-2/+4
| | | | | | | | | | | Use the existing helper to resolve elementPath to the component rather than just use the name of a child element. This way the function behaves the same as goToSlide. Change-Id: I87114071d3f8aed8d18307557dfb05b40150c94c Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Exclude image instances from timegraphJanne Kangas2019-06-171-2/+8
| | | | | | | | | | Make images explicitly not participate in timegraph. Materials are assumed to exist always so start/end time is not relevant, but default values still overrode parent start/end times. Change-Id: I38a593bfb4383195965a3aa09df9f53accb4d045 Task-id: QT3DS-3669 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Fix component visibility changeAntti Määttä2019-06-171-2/+11
| | | | | | | | | | We also need to update the parent time context when component becomes active. Task-number: QT3DS-3656 Change-Id: I9c2872561b950dc2b1ea215148399083ca6f8844 Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Fix eyeball using setAttributeAntti Määttä2019-06-175-39/+47
| | | | | | | | | | | Do not create dynamic property for the eyeball, but use the explicit set flag instead, which is also used by the slide system. Task-number: QT3DS-3655 Change-Id: I9390c8a9b8b20a55596b948d394a74aa66da98c6 Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Remove reloadable texture callback when deleting materialMiikka Heikkinen2019-06-131-0/+4
| | | | | | | | | | | | | | | Callbacks would accumulate over time, leading to a memory leak and probably inefficiency as well, as unnecessary callbacks would be called. Task-number: QT3DS-3632 Change-Id: Ide6854e50df5eb9d4dfb9b61424f2922d99b85bf Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
* Remove datainput control bindings from map on deleteElementJanne Kangas2019-06-142-0/+34
| | | | | | | | | | | Update internal datainput control map when dynamically created elements are deleted. This avoids leaving invalid entries to performance-critical map lookups. Also fix typo in test code. Change-Id: I2b6490bf6de607d303fe0f94496b5b0cfff4c463 Task-id: QT3DS-3635 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Recycle autogenerated ids when creating new elementsMiikka Heikkinen2019-06-111-13/+56
| | | | | | | | | | | This will significantly reduce the stringtable bloat when creating and deleting elements. Task-number: QT3DS-3637 Change-Id: Iadca2c186ec6c144f528705669fc998b1cef669b Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix kria-cluster-demo slowness with delayed loadingAntti Määttä2019-06-111-2/+6
| | | | | | | | | Empty load sets after they have began processing. Task-number: QT3DS-3662 Change-Id: Ic73f062f65500b8d1f349d98376fb1d22e32b06b Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Long live the slayer!Pasi Keränen2019-06-0765-0/+19604
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>