The word Linux can be often seen in news on the Internet sites and in printed periodicals. Certainly, most our readers are well aware that it is an operating system for modern PCs alternative to Microsoft's products. It's often mentioned as an office or even home OS rather than a network one. And taking into account that home PCs are inseparable from games, it becomes very interesting to look into this aspect. The next link in this logical chain will be 3D video accelerators. Their tests under the Windows operating systems take a solid part of our site. But their operation in the Linux remains a mystery.
This article shouldn't be considered a complete and unarguable research, and I hope that it will initiate a constructive discussion of testing video cards (and not only) in the OSes different from the Microsoft Windows.
Such configuration is not top, but it certainly can be referred to the middle-end class.
Although the video cards belong to different classes, it's the first time we test accelerators under an OS other than the Windows and we won't directly compare accelerators in the style of ATI vs NVIDIA, but focus on comparison of their performance in different OSes.
For the Windows we used the following suite:
As to the Linux, the range of its distributives is really great. They actually differ in software versions, installers, programs supplied and localization.
Besides, the outcome may depend on a distributive (and its version). But if the Windows version can be easily described as the "Windows XP Pro Eng SP1", for such a dynamically developing OS as Linux any distributive recorded on CDs gets outdated by the time it appears on the market :)
A while ago I worked with the RedHat 7.3 and found that OS quite handy. Let's try to use it once again. The latest available version is RedHat 9. No additional packets and OS upgrades were used. The installation variant was Full.
Video cards' drivers
Like in case of the Windows, the drivers in the Linux were installed successfully. They were NVIDIA Detonator 40.72 and ATI 7-84-030228a1-008040c.
The only thing we changed was making the vertical sync off in the drivers. For that purpose we had to use an additional control panel for the ATI's driver.
It's a bit more difficult to install the drivers for the Linux than for the Windows, though it's a matter of experience. For the NVIDIA's video adapter we used the driver v1.0-4363 downloaded from the company's site. Its installation was very transparent - one simply has to start the file. The only thing that bothers is that the README.txt is over 120 KB (almost 3000 lines)! But it's highly recommended to read it before installing the driver.
In case of ATI searching for the drivers took a bit more time. On their site they offer drivers for the XFree86 4.1 and 4.2 (this is the graphics shell's core in the Linux), while the RH9 comes with the v4.3. However, I could find on the Internet the driver v2.9.12 written exactly for the XFree86 4.3. For correct installation of this driver we deleted the libGL packet included in the RH9 so that the driver could install its own version of its library.
There is one more problem with installation of the drivers for the Linux. The NVIDIA's drivers use variable environment for their settings. You can choose the FSAA mode, anisotropy and enable vertical sync (it's disabled by default).
For the ATI's cards you can only adjust gamma and enable the dual-head support. The vertical sync parameter is determined during the driver installation. Besides, since the driver was developed for professional cards, you can choose a profile for different applications (but what settings are used there is not clear).
Probably, graphics programs can control image display modes themselves, but it's difficult to ascertain that, and we will leave this issue for the next time.
Now, when we have the PC, two OSes and drivers, the only thing to do is to find applications which would work under these OSes and with these drivers.
Since we are comparing the video accelerators in different OSes (not one with the other), applications should be identical. Fortunately, we have found such:
These programs are available both for the Windows and for the Linux. There are more 3D games which can be used for the OS comparison (for example, RtCW, Serious Sam) but today we will use only the above listed.
The Quake III Arena and Unreal Tournament 2003 games were ported to the Linux by the developers themselves, that is why their quality is not questionable. The SPECViewperf comes with the source code which can be compiled for an OS required. The outcome may depend on a compiler, but we hope (and we will check it some day) that this program which simply transfers requests to the OpenGL driver doesn't depend much on the compiler optimization.
The Linux doesn't use the Direct3D. The only API supported here is the OpenGL. There is also the WineX project which can run games in the Linux from the Windows working with the DirectX. We will try to study it next time.
Although applications often use special optimizations and settings to boost performance, we will use the standard settings where possible.
Let's start with the Quake III. Unfortunately, the format of demo files changes from version to version, that is why we to decided on a relatively simple version four.dm_68 included into the program's build. The game is pretty old, and I used two video modes: standard High Quality and heavy configuration files (with the index H on the diagrams) widely used in our Video Section.
The Linux outpaces the Windows XP in all resolutions and with both variants of the settings! The advantage reaches 25% with the standard settings, and 80%(!) in the heavy mode (at 800x600).
It's interesting that the angle of inclination of the curves in the Windows XP and the Linux is different. Besides, the speed noticeably rises with the transition from 1280x1024 to 1600x1200 in the Linux with the heavy configs. Since all the measurements were taken 5 times, these figures are not doubtful.
The game looks identical in the Windows XP and in the Linux. That is why if your aim is to get as more fps as possible and you use the NVIDIA's card, the OS upgrade can bring good dividends.
Now the ATI's situation.
Surprisingly, in the Linux the card falls behind by 10-30% depending on a resolution. This time the angle of inclination of the curves is almost identical.
But remember that new drivers, both for the Linux and Windows, can easily change the results.
Now the Unreal Tournament 2003 DEMO. This game can use both the Direct3D and the OpenGL under the Windows, but only the latter one under the Linux. The factory settings weren't touched. We changed only the resolution. The game comes with its own benchmarks, and we used one of them - flyby-antalus. Note that the video cards' results published on our site were obtained with the same benchmark, but another version, that is why you should compare them very carefully.
Let's start with NVIDIA again.
In this application the Linux looks inferior (as compared to the Windows version of the OpenGL) - it's almost twice as slow in 800x600. Although the gap shrinks to 21% in 1600x1200, the Linux comes out beaten.
In case of ATI, the gap is 38% in 800x600 and shrinks to 2 fps in 1280x1024 and 1600x1200.
The fact that fps is limited by 70-75 for two lower resolutions in the Linux looks strange. But I can't explain it even after running the additional tests. Later we will come back to this problem, but now take it 'as is'.
The last application is SPECViewperf. Although this is a professional test, and the cards used are of the game class, let's try it anyway.
In case of the NVIDIA's card the test ran into a system error in the light-06 subtest. The problem is probably in the video card's drivers because the card worked well with the previous version. Since that was the only problem I left the latest drivers and calculated the scores in the light-06 by averaging two tests out of four.
In the most tests the video card demonstrates equal performance under different OSes, which indicates that the drivers used are based on the common source code.
ATI has the opposite results once again :) - the leaders in the dx-08 and drv-09 have exchanged heir positions. Besides, the double advantage of the Linux in the ugs-03 looks alarming. In the other subtests the Windows XP outscores the other OS by 17-32%.
So, we have looked at the performance of two popular video cards from two leading manufacturers under the Windows XP and Linux OSes. In general, we didn't have a lot of problems in the tests. And we admit that 3D games can be played not only in the Windows, - the Linux (with the respective software support) doesn't fall much behind. The orientation towards the Direct3D API can make it difficult to port games to the Linux platform where the OpenGL is used, but I hope that the example of id Software and Digital Extreme/Epic Games will be catching.
I can't say that one or the other OS shows better performance - the Windows has it better in most cases, but sometimes the Linux takes the lead.
Kirill Kochetkov (email@example.com)
Write a comment below. No registration needed!