View Single Post
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#33
Originally Posted by qwazix View Post
I wouldn't imagine that using colorAnimation on 4 standard qml Rectangles would be less performant than loading an image and rotating it.
I didn't say it wasn't, although creating four rectangles (and four animations) plus bindings and property settings between them is a lot more work, but then we're talking on a rather minute-level, and for a component like a busy indicator, that sort of consideration doesn't matter. On the other hand, if you're working on something like Label, where a bad property binding can be the difference between 0.x ms and 2ms to create a single Label -- that sort of thing does matter when you're creating tens or hundreds of them in a typical application, or while panning.

I'm not drawing direct comparisons here, I'm just noting that performance is (or should always be) a concern when designing something. Otherwise you end up with compromises somewhere further down the line (precreating, caching, prestarting applications, or just being slow...)
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.
 

The Following 5 Users Say Thank You to w00t For This Useful Post: