Results 1 to 4 of 4

Thread: How to calculate rendring time of Qpixmzp or graphicsview

  1. #1
    Join Date
    Mar 2010
    Posts
    63
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default How to calculate rendring time of Qpixmzp or graphicsview

    Hi,
    Please suggest me How to calculate rendring time of Qpixmzp or graphicsview.
    Is any library present in Qt for calclating the same.

    Thanks

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to calculate rendring time of Qpixmzp or graphicsview

    Pretty much impossible to do this by algorithm. The number of variables - CPU and graphics card characteristics, system memory, which operating system, which underlying graphics library, system load and many others - is too large and varied.

    You can easily time some test images yourself with various timer functions, or insert a timer within a program that accumulates estimates as it runs on a given system that will, over time, converge on a reasonably accurate estimate, but even that will always be an approximation at best.

  3. #3
    Join Date
    Mar 2010
    Posts
    63
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to calculate rendring time of Qpixmzp or graphicsview

    Hi,
    Thanks for reply.
    IS there any other way to measure perfomance of moudle. in term of sapce time complexicity.
    Is any such library given in Qt ?

    Thanks

  4. #4
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to calculate rendring time of Qpixmzp or graphicsview

    QTestLib has QBENCHMARK. See example here. But in case of painting performance you have to find alternative way or workarounds (paint event of widgets is synchronized with refresh rate of screen).
    Once I did this kind of test by putting in graphics view lots of objects of one kind and animating some of them (I measured nr of paint event calls in 4 second period, nr of object was so big so frames per second were smaller then refresh rate of screen so I have warranty that I measure performance of my painting not screen refresh rate).

Similar Threads

  1. Calculate scene coordinates from QGraphicsLinearLayout
    By onurozcelik in forum Qt Programming
    Replies: 2
    Last Post: 21st January 2011, 08:38
  2. calculate draw time
    By johnsoga in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2009, 02:03
  3. how to calculate difference b/w two times
    By dummystories in forum Newbie
    Replies: 1
    Last Post: 9th March 2009, 13:58
  4. Replies: 0
    Last Post: 6th March 2009, 08:19
  5. How to calculate Monitor Resolution?
    By ashukla in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2007, 07:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.