people are quite often confused or misled regarding graphics API options that you can use to launch TF2 with. this’ll be a short blog post to clear things up and give you a better idea about all of these options.
as you may know (or maybe you don’t), TF2 can be played in more than one graphics API.
what’s a graphics API? + some misconceptions you might have
it’s the code that programs need to talk to your graphics processor. this applies to anything that needs to render three-dimensional objects. that’s all you should really know in TF2’s case.
TF2 defaults to using Direct3D 9.0c, also known as DirectX 9 Shader Model 3. the dxlevel equivalent of this is dxlevel 95 on Windows and dxlevel 92 on Linux. this is the newest graphics engine that TF2 can possibly use. TF2 does not and has never supported anything newer than this.
you might’ve also been misled into thinking that TF2 supports OpenGL and Vulkan at a native level. it does not.
whenever TF2 uses either OpenGL or Vulkan, it translates DirectX 9.0 calls (by using toGL or DXVK) to the respective alternative API. this also unfortunately means that TF2, as long as it stays on the same 2002 source 1 codebase, will never be able to properly take advantage of the much more modern and optimised Vulkan graphics API.
which one should i use?
short answer(s):
if Windows, dxlevel 95.
if Linux, Vulkan.
long answer:
DirectX 9.0c is the most stable option as it is the newest graphics API that TF2 natively supports.
Linux does not support DirectX as it is proprietary software owned by Microsoft. you are forced to use OpenGL or Vulkan translation layers.
OpenGL is NOT recommended unless it’s your only choice. TF2’s implementation of translated OpenGL is quite finnicky and prone to bugs/performance bottlenecks.
if you must use a translation layer presumably due to running Linux, just use Vulkan.*
some CPUs and GPUs older than 2015 might not support Vulkan. trying to launch TF2 using Vulkan on some legacy PCs will result in black screen / crash. in this case, OpenGL is your only option.
if you are on Windows, it heavily depends whether you will benefit from using Vulkan. even if you do, the gains are negligible to the point where it’s not worth bothering at all.
while neither OpenGL or Vulkan options support DirectX versions lower than 9.0, it is possible on Windows to directly launch TF2 with the even older DirectX 8.0 or DirectX 8.1.
there are hardly any benefits to using DirectX 8.0/8.1. super duper old GPUs might see a slight performance gain, but that is about it. it will also introduce several visual bugs like breaking warpaints and the colouring for casual mode level badges.
how do i change the graphics API?
right click on TF2 inside your steam library > “Properties” > click on “launch options”
preceded by a dash (“-“), these are the launch options you can use related to graphics APIs:
“dxlevel 98” is meant for console versions of the game and has never been an actual option on PC. “dxlevel 100” is often mistaken for a TF2 launch option but it has never been actually supported. using “gl” on Windows does nothing as support for using the toGL wrapper is only included in the Linux build of the game.