We do often include affiliate links to earn us some pennies. See more here.
Hey there folks! Today I bring you a smaller but new test I did recently with my system.

I wanted to see what the actual performance difference was when running Left 4 Dead 2 natively in Ubuntu 13.04 versus running it in Windows 8. To visually gauge this difference, I took a look at the frames per-second and recorded the outcome in the following video:

YouTube Thumbnail
YouTube videos require cookies, you must accept their cookies to view. View cookie preferences.
Accept Cookies & Show   Direct Link

Needless to say, I was actually shocked when watching the videos and seeing the difference myself. This reassures me that Native gaming is a must over Wine gaming (although this is just my opinion).

Some may point out that Fraps is too heavy of a screen recorder to get an accurate reading of fps, however I tried other alternatives available to me such as XFire and MSI Afterburner and Fraps hands down is the only one giving Windows a fighting chance. [More info on this in the description of the video page].

Remember, that Windows is usually heralded as having better support and drivers compared to Linux in general. Taking this into consideration, both OS's were put under the duress of running L4D2 at maxed out settings while simultaneously performing the screen recording as well. I ran the Windows test multiple times to ensure similar results, and I ran the Ubuntu test twice with the same results.

Please pause the video at 0:08 to view the settings at which I played L4D2 (the settings are same across both OSs).

Ending notes:
I am only human, so it is very likely there were mistakes or things I may have overlooked. Please feel free to correct me, offer me guidance or even post your own results! The more tests we have, the greater the sample we can make judgement from.

A thank you to the kind folks who guided me on ways to better my future test videos based on my older videos, I hope to do a few more of these if people enjoy watching them.

Please note that the experience may be completely different for AMD graphics users and Intel graphics users. I do not claim that this will be what everyone experiences whether now, in the past or in the future. It is just what I have so far consistently experienced. Article taken from GamingOnLinux.com.
Tags: FPS, Steam, Video, Zombies
0 Likes
About the author -
Distro:    Ubuntu
Channel: Youtube Ubuntu Gaming
Country: Malaysia
See more from me
The comments on this article are closed.
27 comments
Page: «3/3
  Go to:

Mike Lothian Sep 24, 2013
I'm looking forward to using the vaapi recorder built into wayland - basically effort free h264 recording for free (sans audio)
Maarten Baert Sep 25, 2013
It looks impressive, but it is not exactly a fair comparison when you use two screen recorders with very different recording strategies :). I don't know the exact internals of Fraps, but this is what I know:

- Fraps captures frames by intercepting API calls from OpenGL or Direct3D. SimpleScreenRecorder does the same if you use the OpenGL recording mode, but otherwise it uses X11 calls instead. The key difference is that the method used by fraps or SSR with OpenGL recording is synchronous (it blocks the game while a frame is captured) whereas the X11 calls are asynchronous (the game isn't blocked and as a result you can get tearing). So it doesn't surprise me that you saw a very noticeable drop in frame rate.

- SSR uses FFmpeg which has a large collection of codecs, and some of them are very fast (e.g. x264 and ffvhuff). Fraps has only one (custom) codec, and I don't think it is as fast as the ones in FFmpeg.

- SSR and some of the codecs (x264 and VP8) are designed to take advantage of multiple CPU cores. I'm not sure whether Fraps does this too. In fact, it is possible that Fraps does the encoding in the game itself rather than in a separate process - I don't know.

- SSR has a highly optimised RGB-to-YUV converter. It converts a full 1080p frame in 2ms on my CPU. The fastest other open-source implementation I have found needs 3ms. A plain C implementation needs 8ms. FFmpeg normally needs 16ms. If you record at high frame rates, this starts to add up. I don't know how well this part of Fraps is optimised.

Another thing to note is that no linux drivers other than the proprietary AMD driver currently support asynchronous readbacks from the GPU to RAM (NVidia has added asynchronous upload for newer cards, but not readback AFAIK). For this reason, SSR doesn't even try to do asynchronous readback. I hope this will improve in the future, but right now OpenGL recording will cause a big drop in FPS for this reason.

All this is a bit besides the point, because when you are recording a game, the goal shouldn't be to get the highest possible frame rate. The goal is to make the frame rate of the game match the frame rate of the final video exactly, so no CPU or GPU time is wasted and you get the highest possible quality. There is an option in SSR that does this if you use OpenGL recording. Doing so will also eliminate tearing and make the video smoother.

Still, it's an interesing test :).
Maarten Baert Sep 25, 2013
And as Mike Lothian pointed out, Wayland + zero-copy buffers + hardware video encoding will definitely improve things for Linux :).
YoL Sep 25, 2013
I agree with the previous comments that this test is a bit unfair.
It could even be a disadvantage for ubuntu compared to windows(Even though the result does seem to point the other way).

Why dont you also measure the fps without screen capture software and post it aswell?
Sabun Sep 25, 2013
While I did mention in the video that my performance outside of the screen recorders was that both platforms performed rather the same and there wasn't really a performance difference, I understand people wish to see it with proper timing and no screen recorders messing with the fps.

I am editing a new video of L4D2 running in both Windows and Ubuntu without any screen recorder, and both using a demo file to ensure timing is the same. It is being done with a low end camera though, and I feel even with this video there will be quite a few people I cannot satisfy.

However, I am grateful for the guidance and advice many of you have given me. Hopefully this next video will better represent my experience on both platforms in terms of L4D2 (outside of screen capture that is). I should have the video uploaded in a couple of days, and one other test video in conjunction with this redone test.
Revenant Sep 28, 2013
Strange, I'm using ubuntu, used to use windows 8
Graphic card - nvidia geforce gt450, 1gb ram, latest nVidia drivers on both system

I don't see any difference between ubuntu and windows in terms of FPS, didn't run precise benchmark but if there would be even 20% difference I would noticed, but seems the same FPS on the same places, with the same averages and on the same scenes FPS drops, etc.

But generally on windows L4D run more smoothly - on linux I have periodical lags when game stops for 0.1-0.2 seconds each 5-15 seconds
Sabun Sep 28, 2013
Quoteon linux I have periodical lags when game stops for 0.1-0.2 seconds each 5-15 seconds
I've read about that. You can try and fix it by getting indicator-cpufreq from the Ubuntu Software Center. Once installed, just restart/log out and when you come back in there's an icon on the top right. Right click it and set it to Performance, this will heavily utilize your CPU and reduce those periodical lags.

Regarding the fps, it is indeed relatively the same on both Operating systems. I removed the screen recorders and used Source's Demo ability, so the following video better represents the performance between the two.

View video on youtube.com

Uploaded this days ago, but it got stuck in YouTube processing (happened before too).
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
The comments on this article are closed.