[Interest] Rotating objects in QML are killing performance
Sletta Gunnar
Gunnar.Sletta at digia.com
Fri Apr 12 08:40:05 CEST 2013
On Apr 11, 2013, at 8:43 PM, Alan Alpert <416365416c at gmail.com> wrote:
> On Thu, Apr 11, 2013 at 10:08 AM, Michael Andersen
> <michael at steelcode.com> wrote:
>> Forgot list in reply.
>>
>> So no hope of it being fixed in 5.2 then... oh well. I'll go file a bug
>> report. Does this happen on windows too or is this a linux thing?
>
> It could also be a driver thing. When reporting the bug please include
> your graphics card/driver.
>
>> Does anyone have any ideas for a workaround? Other than "don't rotate stuff"
>> ?
>
> If it's just a continual looping animation, and not particularly
> interactive, then you could pre-render the rotating rectangle into a
> gif or sprite sheet and play it with an AnimatedImage or
> AnimatedSprite. Those are likely to perform better.
That is a horrible idea :)
A Rectangle is significantly cheaper than a sprite and rotations on anything in Qt Quick 2 is for all intents and purposes a free operation.
cheers,
Gunnar
>
> --
> Alan Alpert
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list