Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-29 Thread Artem Fedoskin
After evaluating the amount of xChanged(), yChanged() and visibleChanged() signals I decided to stick with the approach where I create QQuickItems from C++ with overriden updatePaintNode() instead of direct instantiation of QSGNodes. Thank you for your help! It was tremendous useful and now I

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-28 Thread Gunnar Sletta
> On 27 Apr 2016, at 22:47, Artem Fedoskin wrote: > > 1. I have experimented a little with the Scene Graph and got following > results: > • Rectangles with the same color were batched > • Differently colored rectangles weren't batched Yeah, this is explained

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-27 Thread Artem Fedoskin
1. I have experimented a little with the Scene Graph and got following results: 1. Rectangles with the same color were batched 2. Differently colored rectangles weren't batched 3. Textures were batched if the QQuickWindow::TextureCanUseAtlas flag was set but only if QSG_ATLAS_WIDTH

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-26 Thread Gunnar Sletta
> On 25 Apr 2016, at 19:46, Artem Fedoskin wrote: > > Thank you for your reply Gunnar, > > Can you please tell me - can I store a pointer to the object of external > class (even not a QQuickItem derived one) in QSGNode derived class? Each > object of the class Data is

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-25 Thread Artem Fedoskin
Thank you for your reply Gunnar, Can you please tell me - can I store a pointer to the object of external class (even not a QQuickItem derived one) in QSGNode derived class? Each object of the class Data is associated with corresponding Triangle in View. Whenever View is updated, it checks in

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-25 Thread Gunnar Sletta
> On 24 Apr 2016, at 16:49, Artem Fedoskin wrote: > > I'm sorry. My first E-Mail was sent accidentally. Here is the final version > of my E-Mail. > Hello everybody. I have a project where a lot of objects are painted on the > screen whenever the user interacts with the

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-24 Thread Artem Fedoskin
I'm sorry. My first E-Mail was sent accidentally. Here is the final version of my E-Mail. Hello everybody. I have a project where a lot of objects are painted on the screen whenever the user interacts with the app (pan, zoom, move) I would be really grateful to you if you could answer a few