Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why is Qt slower on Win 10 than Linux
Forum Updated to NodeBB v4.3 + New Features

Why is Qt slower on Win 10 than Linux

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 6 Posters 7.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #1

    QtCreator take much longer to load on Win 10 than Linux and the compilations are also slow. Why?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Might be gremlins...

      More seriously, you don't give any details about the machines you are using for each OS nor the compilers you use, nor the Qt version you are using, etc.

      So there's no way to answer that kind of question.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      O 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Might be gremlins...

        More seriously, you don't give any details about the machines you are using for each OS nor the compilers you use, nor the Qt version you are using, etc.

        So there's no way to answer that kind of question.

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #3

        @SGaist The Linux computer is running Mint Linux 10 64bit and the hardware is i7-6000K 4 GHz with 16 GB menory. The Win 10 machine is 64 bits and the same hardware.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          These are still incomplete specification.

          What version of Qt are you using ?
          Where did you get it from ?
          What compiler are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          O 1 Reply Last reply
          0
          • SGaistS SGaist

            These are still incomplete specification.

            What version of Qt are you using ?
            Where did you get it from ?
            What compiler are you using ?

            O Offline
            O Offline
            ofmrew
            wrote on last edited by
            #5

            @SGaist Both are the latest Qt5.10 (64bit Linux and 32bit Win10) and used the online down loader or the maintenance tool. The compiler is gcc on the Linux and mingw-32 on the Win10.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you benchmark the difference of speed ?

              Are you using the same parameters ?

              What kind of graphic card are you using ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi
                have you checked they use the same amount of cores when compiling ?
                the -j4 -j8 option as make step.

                1 Reply Last reply
                1
                • O Offline
                  O Offline
                  ofmrew
                  wrote on last edited by
                  #8

                  The data, in seconds, is given for: opening QtCreator, configuring project to new Qt 5.10 and compiling a project.

                  Linux 2, 4, 3
                  Win10 21, 7, 45

                  Exactly the same project was used.
                  The graphics card on Win10 is a GeForce 980 and there is none on the Linux.
                  The compile time for Linux that I could not see the number of cores being used.

                  What else can I supply.

                  1 Reply Last reply
                  1
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    HI
                    on win. try insert -j8 as build step and see.

                    O 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      HI
                      on win. try insert -j8 as build step and see.

                      O Offline
                      O Offline
                      ofmrew
                      wrote on last edited by
                      #10

                      @mrjj OK. My ignorance is showing, exactly how do I get to the place were I add the "-j8". I know that it is a compiler option, but where do I add it. The documentation is no help, it seem written for someone familiar with the C++ compiler and make. My last use of those was in 1990.

                      Can you point me to a point in the documentation or tell me. Also, how would that effect the startup time?

                      1 Reply Last reply
                      0
                      • mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Hi
                        No worries. i tried to include it .pro file many times, but its
                        in Projects ( left side button)
                        then
                        alt text
                        alt text

                        only valid switch with mingw !

                        O 1 Reply Last reply
                        1
                        • mrjjM mrjj

                          Hi
                          No worries. i tried to include it .pro file many times, but its
                          in Projects ( left side button)
                          then
                          alt text
                          alt text

                          only valid switch with mingw !

                          O Offline
                          O Offline
                          ofmrew
                          wrote on last edited by
                          #12

                          @mrjj Now that is an answer I can understand. I tried it and got the same result. Has anyone that uses MS Studio and mingw see a difference. But I still go back to the startup time; I appears that QtCreator was created using MS Studio. Is there a difference between Qt on Win10-64 and Win10-32. Final data item, it is Windows 10 Pro.

                          O 1 Reply Last reply
                          0
                          • O ofmrew

                            @mrjj Now that is an answer I can understand. I tried it and got the same result. Has anyone that uses MS Studio and mingw see a difference. But I still go back to the startup time; I appears that QtCreator was created using MS Studio. Is there a difference between Qt on Win10-64 and Win10-32. Final data item, it is Windows 10 Pro.

                            O Offline
                            O Offline
                            ofmrew
                            wrote on last edited by
                            #13

                            @ofmrew One last item I forgot: I always delete the Build folder.

                            O 1 Reply Last reply
                            0
                            • O ofmrew

                              @ofmrew One last item I forgot: I always delete the Build folder.

                              O Offline
                              O Offline
                              ofmrew
                              wrote on last edited by
                              #14

                              @ofmrew Another difference, the Win10 computer has a 4K monitor while the Linux does not. I stopped using the 4K on the Linux because the icon were too small to read. I think that will be fixed in the next version of Mint Linux. Does anyone know if TrueOS work with 4K monitors?

                              1 Reply Last reply
                              0
                              • O Offline
                                O Offline
                                ofmrew
                                wrote on last edited by
                                #15

                                Solved. On the Win10 computer Qt and compiler are on a hard disk, but on the Linux computer they are on a solid state disk. I found the problem when I loaded Qt on my HP Spectre 360 laptop and Qt was as fast as it is on the Linux computer. Sorry for the waste of time; however, if you use Qt extensively it is worth putting it on s SSD.

                                mrjjM 1 Reply Last reply
                                3
                                • O ofmrew

                                  Solved. On the Win10 computer Qt and compiler are on a hard disk, but on the Linux computer they are on a solid state disk. I found the problem when I loaded Qt on my HP Spectre 360 laptop and Qt was as fast as it is on the Linux computer. Sorry for the waste of time; however, if you use Qt extensively it is worth putting it on s SSD.

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  @ofmrew
                                  Unless you need massive storage space, a SSD is always worth it if
                                  you use the pc for anything more than facebook. :)

                                  However for compiling, using a ramdisk can get you the same speeds/or better.

                                  O 1 Reply Last reply
                                  2
                                  • mrjjM mrjj

                                    @ofmrew
                                    Unless you need massive storage space, a SSD is always worth it if
                                    you use the pc for anything more than facebook. :)

                                    However for compiling, using a ramdisk can get you the same speeds/or better.

                                    O Offline
                                    O Offline
                                    ofmrew
                                    wrote on last edited by
                                    #17

                                    @mrjj I have been doing all my development on the Linux computer so compile time has not been and issue; it only became an issue when is started testing on the Win10 computer. A ramdisk is faster than SSD, unless paging is a problem, I have not used one since the 1990s when you needed all the help you could get. Long gone are the days when you submitted a program from compilation a got the results back the next day; desk checking is a thing of the past, if anyone today knows what that means.

                                    Anyway, sorry if I wasted anyone's time, but we did learn something.

                                    1 Reply Last reply
                                    0
                                    • johngodJ Offline
                                      johngodJ Offline
                                      johngod
                                      wrote on last edited by
                                      #18

                                      I usually find linux to be faster than windows in everything. I use the same laptop with dual boot, a core i7, nvidia graphic card, a normal, not ssd disk.
                                      Linux mint cinamon 64b is my main OS, but some times I boot into windows 10 64b. I never measured compilation time, but I have benchmarked my OpenGL programs running. Using propprietary nvidia drivers both in linux and in windows, I can almost get away with 2x faster fps in linux than in windows. If I use mesa / opensource drivers in linux the performance is about the same.
                                      One thing that drives me crazy in windows is when I right click some file to get the properties, or right click to create a new file or folder, windows start thinking and I just get desperated waiting for a few seconds until the dialog appers. I never experience anything like that in linux, right click works with no lag. Some times in windows, I just start to ear the disk making noise, I dont know what the heck windows is doing, may be is the microsoft anti virus or something worse scanning my disk. Windows tends to be filled with temporary files using gigabytes of space then I tend to delete on a regular basis. I will stop now, this rant has gonne to far, and is going out of track :)

                                      O 1 Reply Last reply
                                      1
                                      • johngodJ johngod

                                        I usually find linux to be faster than windows in everything. I use the same laptop with dual boot, a core i7, nvidia graphic card, a normal, not ssd disk.
                                        Linux mint cinamon 64b is my main OS, but some times I boot into windows 10 64b. I never measured compilation time, but I have benchmarked my OpenGL programs running. Using propprietary nvidia drivers both in linux and in windows, I can almost get away with 2x faster fps in linux than in windows. If I use mesa / opensource drivers in linux the performance is about the same.
                                        One thing that drives me crazy in windows is when I right click some file to get the properties, or right click to create a new file or folder, windows start thinking and I just get desperated waiting for a few seconds until the dialog appers. I never experience anything like that in linux, right click works with no lag. Some times in windows, I just start to ear the disk making noise, I dont know what the heck windows is doing, may be is the microsoft anti virus or something worse scanning my disk. Windows tends to be filled with temporary files using gigabytes of space then I tend to delete on a regular basis. I will stop now, this rant has gonne to far, and is going out of track :)

                                        O Offline
                                        O Offline
                                        ofmrew
                                        wrote on last edited by
                                        #19

                                        @johngod I am thinking about going to dual boot and re-purposing my Linux computer as a HTPC. How do you like it? I have avoid use it as I had very bad experiences with the early dual boot program. In the past I would just swap discs, but UEFI put and end to that practice.

                                        I have used every version of Windows since version 1. The only good one was Win286. Today's windows is really VMS++ and upgraded DEC OS. For my money OS/2 was the best, then it got screwed by Intel when they introduced the neutered 486 which stopped IBM from coverting the graphic system to 32-bit and forever ending that horrible thunking!

                                        Also, for those worried about virsus, remember that Microsoft is responsible for ActiveX; sure bring in code from anywhere and let it run. I have more but my rant is over, but remember that Microsoft got started with operating systems by getting one from Seattle Computing.

                                        1 Reply Last reply
                                        0
                                        • johngodJ Offline
                                          johngodJ Offline
                                          johngod
                                          wrote on last edited by
                                          #20

                                          I bought my laptop about 2 years ago and back then I had my share of troubles to get dual boot working because of uefi. The good enought solution I found then and using until now, was to install linux with the bios in legacy mode. So whenever I change from one OS to another I have to go into the bios setup. So I guess you will have to do a bit of digging in linux foruns to get your duall boot to work. But my advice is still just go ahead and do it :)

                                          O 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved