[Qt-interest] PropertyAnimation and graphicsItemAnimation - was - is it the right way to calculate fps?
Pritam Ghanghas
pritam_ghanghas at infosys.com
Fri Jun 25 07:21:42 CEST 2010
Its not that I dont like higher FPS, higher the better :-). But I never
got anywhere near to this value when I was using QGraphicsItems which
are supposed to be lightweight. But same images with same paint size in
a tableView where in I used scrollBar value property to animate gives a
very large value compared to QGV (45 in tableView, 9 in QGV). And there
is a wide line of fuzziness that seems to move from bottom to top during
the animation when I do with scrollbars.
Is QPropertyAnimation more efficient than QGraphicsItemAnimation. Or
scrollArea does some magic to make it smoother.
On Fri, 2010-06-25 at 01:16 +0530, Constantin Makshin wrote:
> (1) should be more correct, IMHO, because it counts actual redraws instead of some updates that may be ignored for some reason (vsync, etc.).
>
> And why don't you like high FPS values? :)
> Or your FPS counter seems to show wrong values (i.e. the animation is significantly less smooth than you expected from shown FPS value)?
>
> On Thursday 24 June 2010 21:18:51 lists4pghanghas wrote:
> > Hi
> >
> > Over time I have used two methods for calculating FPS during animations
> > in my qt progs.
> > and always had doubts whether I am getting the right nos or not
> >
> > 1) increment a counter in paint event of widget whose fps I want to know
> > and then use that to calcualte fps at the end of animation
> > 2) increment counter everytime animation api emits signal
> > valuechanged/framechanged.
> >
> > Are these methods guaranteed correct in every usecase. And are there any
> > better methods ways to do this.
> >
> > I am asking this question becaues I got a very hight number with these
> > methods recently when using scrollArea. That no seems unlikely on my
> > embedded hardware.
> >
> > Thanks
> > Pritam
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list