Reputation: 13691
I wonder, if it is more beneficial to use the abilities of QML for animations, or prefer to use animation files (such as GIF oder MNG) for simple, small-scale animations.
Examples for what I call "simple, small-scale animations" are:
I don't know much about the internals of Qt, so I am unsure, whether I benefit from hardware acceleration, when programming the animations (e.g. image rotation) or not. And if so, whether this hardware acceleration outperforms the display of pre-calculated animations from GIF and MNG.
Greetings and thanks,
-m-
Upvotes: 2
Views: 805
Reputation: 24396
I wouldn't worry about things like this unless they visibly slow the performance of your application. Some points to consider:
Image
and AnimatedImage
have the high DPI @*x file look-up.Image
and AnimatedImage
support caching.Image
and AnimatedImage
will use the Qt Quick scene graph to display the images (OpenGL textures, which should result in hardware acceleration).AnimatedImage
has to read several images, but won't require rotation.If you're looking for good general performance advice, read the Performance Considerations And Suggestions documentation.
Upvotes: 2