Left 4 Dead 2 Va más rápido en Linux que en Windows.
#1
Cita
Cita:Faster Zombies!

One factor in creating a good gaming experience is throughput.┬á This post discusses some of what weÔÇÖve learned about the performance of our games running on Linux.
As any software developer can tell you, performance is a complicated issue.┬á In the interests of simplicity, weÔÇÖll concern ourselves with the following high-end configuration:

Hardware

Intel Core i7 3930k
NVIDIA GeForce GTX 680
32 GB RAM
Software

Windows 7 Service Pack 1 64-bit
Left 4 Dead 2
Ubuntu 12.04 32-bit
We are using a 32-bit version of Linux temporarily and will run on 64-bit Linux later.
Running Left 4 Dead 2 on Windows 7 with Direct3D drivers, we get 270.6 FPS as a baseline. The data is generated from an internal test case.

When we started with Linux, the initial version we got up and running was at 6 FPS. This is typical of an initial successful port to a new platform.
Performance improvements fall into several categories:

Modifying our game to work better with the kernel
Modifying our game to work better with OpenGL
Optimizing the graphics driver
An example of the first category would be changing our memory allocator to use more appropriate Linux functions. This was achieved by implementing the Source engine small block heap to work under Linux. The second category would include reducing overhead in calling OpenGL, and extending our renderer with new interfaces for better encapsulation of OpenGL and Direct3D.
The third category is especially interesting because it involves working with hardware manufacturers to identify issues in their drivers and, as a result, improving the public driver which benefits all games. Identifying driver stalls and adding multithreading support in the driver are two examples of changes that were the result of this teamwork.
After this work, Left 4 Dead 2 is running at 315 FPS on Linux. That the Linux version runs faster than the Windows version (270.6) seems a little counter-intuitive, given the greater amount of time we have spent on the Windows version. However, it does speak to the underlying efficiency of the kernel and OpenGL. Interestingly, in the process of working with hardware vendors we also sped up the OpenGL implementation on Windows. Left 4 Dead 2 is now running at 303.4 FPS with that configuration.

OpenGL versus Direct3D on Windows 7

This experience lead to the question: why does an OpenGL version of our game run faster than Direct3D on Windows 7? It appears that itÔÇÖs not related to multitasking overhead. We have been doing some fairly close analysis and it comes down to a few additional microseconds overhead per batch in Direct3D which does not affect OpenGL on Windows. Now that we know the hardware is capable of more performance, we will go back and figure out how to mitigate this effect under Direct3D.

Working with hardware vendors

WeÔÇÖve been working with NVIDIA, AMD, and Intel to improve graphic driver performance on Linux. They have all been great to work with and have been very committed to having engineers on-site working with our engineers, carefully analyzing the data we see. We have had very rapid turnaround on any bugs we find and it has been invaluable to have people who understand the game, the renderer, the driver, and the hardware working alongside us when attacking these performance issues.
This is a great example of the benefits that are the result of close coordination between software and hardware developers and should provide value to the Linux community at large.

New Comment Policy

Starting with this post and in the future, only comments that contribute in a substantive way to the current discussion will be approved. We appreciate the excitement and support but we want the comments to be readable and informative, so please keep that in mind when you write a comment.

http://blogs.valvesoftware.com/linux/faster-zombies/
#2
Cita
No lo dudo, pero el tufillo de Valve anti MS canta demasiado...
A Túrin Turambar turún' ambartanen
#3
Cita
(02-08-2012 13:37)kakafuti link escribió:No lo dudo, pero el tufillo de Valve anti MS canta demasiado...

Lo comentan en el podcast de 33bits unos tíos super majos y que se ve que saben mucho de juegos y eso, piensan al parecer que es una estrategia de Valve para un hipotético salto al hardware.
Bienvenidos al podcast de la Pócima Roja, la que te foca, la que te parte la cara.
#4
Cita
Puede ser, pero soy de la opinion de que les jode mas que MS tenga ahora, o en unos pocos años, una APP Store propia y bajo su control en el 90% de los ordenadores del mundo...
A Túrin Turambar turún' ambartanen
#5
Cita
Yo hasta que no lo ponga en mi ubuntu y lo vea no me lo creo, que siempre que ocurre algo de este calibre salen noticias de este tipo y no tienen porque ser verdad

De todas formas con lo mal que van los juegos de valve en windows no me extrañaria nada
#6
Cita
También iba mejor el Portal o el HL2 en la 360 que en PS3 y el Portal 2 tiene una diferencia brutal a favor de PS3, no sé si me explico.
#7
Cita
(02-08-2012 14:17)kakafuti link escribió:Puede ser, pero soy de la opinion de que les jode mas que MS tenga ahora, o en unos pocos años, una APP Store propia y bajo su control en el 90% de los ordenadores del mundo...

Y dale. Que la App Store de Microsoft es una puta mierda comparada con Steam. Steam lidera el servicio de descarga digital y se la suda que MS haga lo mismo que Apple o Canonical.

A mí la noticia me cuesta creérmela (No pienso volver a comprar nada de AMD en mi vida por culpa de su puto soporte de software), pero ojalá sea verdad.
#8
Cita
(02-08-2012 15:03)Bart_10 link escribió:Y dale. Que la App Store de Microsoft es una puta mierda comparada con Steam. Steam lidera el servicio de descarga digital y se la suda que MS haga lo mismo que Apple o Canonical.

A mí la noticia me cuesta creérmela (No pienso volver a comprar nada de AMD en mi vida por culpa de su puto soporte de software), pero ojalá sea verdad.

Es una puta mierda ahora. Si W8 ocupa el 60% de los ordenadores del mundo, estilo W7, sea una mierda o no, sera la tienda online  de aplicaciones y juegos mas visitada del mundo, y a nada que venda, la que mas volumen de ventas tendra...
A Túrin Turambar turún' ambartanen
#9
Cita
Bueno, el título que escogí es un tanto amarillista, es pronto para afirmarlo con rotundidad. Lo que sí es verdad es que bajo ese hardware han conseguido un mayor número de frames de media en Ubuntu 12.04 32-bit que en Windows 7 Service Pack 1 64-bit y eso no lo pongo en duda porque es una entrada del propio equipo de Linux de Valve en su blog.
#10
Cita
Sorry, la lié intentando editar y me hice un quote┬á roto2:
#11
Cita
Ahora a ver si consiguen hacer una aplicación que sirva de emulador de Windows para Linux. Sería la manera más rápida de convertir la mayoría de sus juegos a Linux.

(02-08-2012 13:39)Suriken link escribió:Lo comentan en el podcast de 33bits unos tíos super majos y que se ve que saben mucho de juegos y eso, piensan al parecer que es una estrategia de Valve para un hipotético salto al hardware.
Quisiera ver yo a esos tíos tan majos hacer el Meritrivia. ¡Ja! Se iban a enterar de lo que es saber de videojuegos.
#12
Cita
(02-08-2012 15:10)kakafuti link escribió:Es una puta mierda ahora. Si W8 ocupa el 60% de los ordenadores del mundo, estilo W7, sea una mierda o no, sera la tienda online┬á de aplicaciones y juegos mas visitada del mundo, y a nada que venda, la que mas volumen de ventas tendra...

Querrás decir en el caso de que alguien se quiera instalar esa mierda que es Windows 8 en su equipo, cosa que dudo horrores.

Que tenga millones de personas no significa que sea la que más vaya a vender, mira el Google Play.


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)