Why is Qt slower on Win 10 than Linux
-
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.
-
These are still incomplete specification.
What version of Qt are you using ?
Where did you get it from ?
What compiler are you using ? -
Did you benchmark the difference of speed ?
Are you using the same parameters ?
What kind of graphic card are you using ?
-
Hi
have you checked they use the same amount of cores when compiling ?
the -j4 -j8 option as make step. -
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, 45Exactly 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.
-
HI
on win. try insert -j8 as build step and see. -
@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?
-
Hi
No worries. i tried to include it .pro file many times, but its
in Projects ( left side button)
then
only valid switch with mingw !
-
@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.
-
@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?
-
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.
-
@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.
-
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 :) -
@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.
-
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 :)