[Qt-interest] is it the right way to calculate fps?
lists4pghanghas
lists4pghanghas at gmail.com
Thu Jun 24 19:18:51 CEST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100624/0de832b3/attachment.html
More information about the Qt-interest-old
mailing list