Source 2

On this page 7

Source 2 is the proprietary game engine developed by Valve, the successor to the original Source engine and the technology behind Dota 2, Half-Life: Alyx, Counter-Strike 2 and Deadlock. Among game engines in gaming, it stands out as an in-house engine built for Valve’s own titles rather than a product sold to the wider industry, which shapes how it evolves and who can use it.

Valve announced Source 2 in 2015, the same year Dota 2 moved onto it in the update known as Reborn. Its design priorities are modern rendering APIs, fast iteration through a compiled asset pipeline, a rebuilt Hammer level editor and deep integration with Steam services such as the Workshop and Steam Audio.

How the Source 2 architecture is organized

Source 2 is organized as a set of modular subsystems around a shared resource system, so rendering, physics, audio, animation and user interface can be updated independently. Each Valve title ships its own game-specific code layer on top of this core, which is why Counter-Strike 2 and Dota 2 feel very different while sharing tools and file formats.

The resource compiler is central to the workflow. Artists author source files such as models, textures and materials, and the engine compiles them into runtime-optimized resources with a _c suffix, for example .vmdl_c for models and .vmat_c for materials. Compiled resources are packed into VPK archives, a container format inherited from the original Source engine.

The table below summarizes the main subsystems and what each one contributes to a shipped game.

SubsystemRoleNotable detail
RendererDraws scenes with modern graphics APIsVulkan and DirectX 11 back ends
Rubikon physicsRigid bodies, collisions, constraintsValve’s in-house physics engine
AnimgraphBlends and layers character animationNode-based animation logic
Panorama UIMenus and in-game interfaceLayout and styling similar to web markup
Steam AudioSpatial and physically based soundOcclusion and reflection modeling
VScriptGameplay scripting layerLua in Dota 2 and Half-Life: Alyx
Core subsystems of Source 2

Rendering and the Hammer level editor

The Source 2 renderer uses a physically based shading model with support for Vulkan and DirectX 11, and Valve titles have also shipped on macOS and Linux through translation layers and native back ends. The rendering pipeline is tuned for high and stable frame rates rather than maximum visual density, a choice that suits competitive shooters and virtual reality.

Half-Life: Alyx demonstrated that tuning in virtual reality, where frame drops cause discomfort. The engine uses careful level-of-detail management, baked lighting where possible and dynamic resolution techniques to hold the 90 Hz or higher refresh targets that headsets require.

The rebuilt Hammer editor is the most visible change for creators. Original Source maps were built from BSP brushes, convex solids that the compiler cut into a binary space partitioning tree. Source 2 Hammer instead uses polygon mesh editing, so designers can extrude, bevel and cut geometry directly, much like a lightweight modeling program inside the level editor.

The following comparison shows how the main workflow elements changed between the two engine generations.

AspectOriginal SourceSource 2
Level geometryConvex BSP brushesEditable polygon meshes
Map compile timeOften long full compilesFaster incremental builds
PhysicsLicensed Havok middlewareIn-house Rubikon
Graphics APIMainly DirectX 9Vulkan and DirectX 11
User interfaceVGUI and ScaleformPanorama
Asset handlingSeparate compile toolsUnified resource compiler
Source compared with Source 2

Games and projects built on Source 2

Source 2 powers a small number of high-profile titles, almost all developed or published by Valve. Each one exercised a different part of the engine, which makes the catalog a useful map of its capabilities.

TitleYear on Source 2What it showcased
Dota 22015Panorama UI and Workshop custom games
Half-Life: Alyx2020Virtual reality physics and interaction
Counter-Strike 22023Sub-tick networking and dynamic smoke
DeadlockPlaytest phaseHybrid hero shooter and lane design
s&boxIn developmentThird-party C# layer by Facepunch
Major titles using Source 2

Counter-Strike 2 introduced a sub-tick system in which the server records the exact moment of player inputs between simulation ticks, instead of rounding every action to a fixed tick boundary. It also brought volumetric smoke that reacts to bullets and grenades, an example of tightly coupled rendering and gameplay simulation.

How Source 2 compares with commercial engines

Source 2 differs from Unreal Engine, Unity and Godot mainly in access and business model, not only in features. Commercial engines are designed to be licensed by thousands of studios, with public documentation, marketplaces and support plans, while Source 2 is primarily an internal production tool.

Valve has stated that Source 2 would be free for developers who ship on Steam, but in practice no general public license has been offered. Outside creators work with it mainly through Workshop Tools for specific games, such as Dota 2 custom games, Half-Life: Alyx levels and Counter-Strike 2 maps, or through the s&box project.

CriterionSource 2Unreal EngineUnity
AvailabilityMostly internal to ValvePublic downloadPublic download
Primary languageC++ with Lua scriptingC++ and BlueprintC#
DocumentationCommunity wikis, limitedExtensive official docsExtensive official docs
Asset marketplaceSteam Workshop per gameFab marketplaceAsset Store
Typical usersValve and moddersAAA and indie studiosIndie and mobile studios
Source 2 against widely licensed engines

Compared with other in-house engines such as Frostbite, CryEngine or id Tech, Source 2 is unusual in how openly it supports user-generated content. Shipping editors to players has been a Valve tradition since the original Hammer, and it explains why community maps and modes remain a large part of its games.

Limitations and common misconceptions

The main limitation for outside developers is access rather than technology. Without a public license, studios cannot plan a commercial product on Source 2 the way they can on Unreal or Unity, and official documentation is sparse, so community wikis fill the gap.

  • Not an Unreal competitor in the market: Source 2 competes on technology inside Valve titles, not on licensing revenue.
  • Not a single fixed version: each game ships a branch of the engine with its own features, so a tool that works in Counter-Strike 2 may not exist in Dota 2.
  • Not identical to Source 1 modding: old BSP maps and Source 1 models must be converted or rebuilt before they work.
  • Workshop Tools are game-bound: content made for one title is generally not portable to another without rework.

Performance claims also need care. Source 2 is efficient for its target genres, but results depend heavily on content complexity, map optimization and driver quality, so a poorly built community map can still run badly.

In simple terms

Source 2 is the toolkit Valve uses to make its own games. It handles the graphics, the physics, the sound and the menus, so the game teams can focus on the game itself.

Think of it as a private workshop rather than a hardware store. Unreal and Unity sell their tools to anyone, while Valve mostly keeps Source 2 for itself. Players and modders can still use parts of it through free editors that come with games like Counter-Strike 2, which is how many community maps are made.

A practical example

A hobbyist level designer wants to build a competitive map for Counter-Strike 2. She installs the free Workshop Tools, opens Source 2 Hammer and blocks out three lanes with polygon mesh tools, adjusting wall heights and corners directly instead of rebuilding brushes.

After each change she runs a quick incremental compile and tests the map within a minute, checking sightlines and the time it takes to reach each bombsite. Once the layout feels balanced, she adds materials, baked lighting and props, then publishes the map to the Steam Workshop.

Within weeks, thousands of players subscribe and community servers add it to their rotation. The fast edit, compile and test loop let her refine the layout over dozens of iterations, which is the practical advantage Source 2 Hammer offers over the slower Source 1 workflow.