Results 1 to 3 of 3

Thread: qpixmap: windows vs linux speed

  1. #1
    Join Date
    Dec 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default qpixmap: windows vs linux speed

    I work on a project where I draw different 2D objects 10000 times on a qpixmap and then I set it on a label of my widget.
    I noticed that there is a significant difference in drawing speed between windows(8.1) and linux(mint 17.1) in favor of latter.
    Can someone explain why is my program slower when running in windows? Thank you.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qpixmap: windows vs linux speed

    Quote Originally Posted by dombe View Post
    I work on a project where I draw different 2D objects 10000 times on a qpixmap and then I set it on a label of my widget.
    I noticed that there is a significant difference in drawing speed between windows(8.1) and linux(mint 17.1) in favor of latter.
    Can someone explain why is my program slower when running in windows? Thank you.
    How exactly did you perform the measurement? Linux might be faster as the pixmaps are already uploaded to the X server and just need to be assembled there. However I'm quite surprised the different would be significant. How do you draw items on the pixmap?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qpixmap: windows vs linux speed

    I didn't perform any exact measurements, but when I'm drawing in a loop, (every time drawing different objects(size, color, shape ) on a new pixmap), in mint label is changed roughly every 2 seconds and in windows every 6-8 seconds,sometimes even more(I also run it on a different machine(same linux and win) - same thing)
    I'm drawing with a painter like this:
    Qt Code:
    1. QPainter painter( &pixmap );
    2. .......
    3. painter.draw___();
    4.  
    5. ui->label->setPixmap(pixmap);
    To copy to clipboard, switch view to plain text mode 
    Last edited by dombe; 16th December 2014 at 07:09.

Similar Threads

  1. Replies: 3
    Last Post: 13th May 2014, 12:31
  2. How to speed up the Qt GUI apps launch speed?
    By wshn13 in forum Qt Programming
    Replies: 3
    Last Post: 14th March 2012, 08:37
  3. Windows 7 and QPixmap
    By GimpMaster in forum Qt Programming
    Replies: 4
    Last Post: 23rd February 2010, 19:36
  4. Replies: 0
    Last Post: 8th May 2009, 12:37
  5. Drawing speed: QPixmap vs QPicture
    By maverick_pol in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 19:17

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.