MSAA

Also known as: Multisample anti-aliasing

On this page 7

MSAA, short for multisample anti-aliasing, is a hardware-accelerated technique that smooths the jagged, stair-stepped edges of polygons by testing geometry coverage at several sample points inside each pixel while running the pixel shader only once. Among graphics settings in gaming, it is usually offered as 2x, 4x or 8x, where the number is the count of samples per pixel.

MSAA sits between cheap post-process methods and brute-force supersampling. It delivers sharp, stable geometry edges without blurring textures, but it does not fix every kind of aliasing, and it fits poorly with the deferred rendering pipelines that many modern engines use.

How multisample anti-aliasing works

MSAA works by separating coverage from shading. For every pixel, the rasterizer checks whether each of several subsample positions lies inside the triangle being drawn, and the depth and stencil tests also run per sample. The pixel shader, however, executes once per pixel per triangle, and its color is copied to every covered sample.

When a pixel lies entirely inside one triangle, all samples receive the same color and the result equals no anti-aliasing. At an edge, only some samples are covered, so the final resolve step averages the samples and produces an intermediate color. This is why MSAA costs far less than supersampling: the expensive shading work grows only at polygon edges, not across the whole image.

GPUs place samples in a rotated or sparse grid pattern rather than a regular grid, which gives better results on near-horizontal and near-vertical edges, the cases where aliasing is most visible.

StageRuns perPurpose
Coverage testSampleDetermines which samples a triangle covers
Depth and stencil testSampleKeeps correct occlusion at edges
Pixel shadingPixelComputes one color for covered samples
ResolvePixelAverages samples into the final pixel
Stages of an MSAA frame

MSAA sample counts and their cost

The sample count sets the number of intermediate shades available at an edge, and therefore how smooth the gradient looks. With 4x MSAA an edge pixel can show five coverage levels, from zero to four covered samples, which already removes most visible stair-stepping at typical viewing distances.

Cost scales mainly with memory bandwidth and storage, because the color and depth buffers hold one value per sample. The performance impact varies widely with resolution, engine and GPU architecture, so the figures below are qualitative ranges, not fixed numbers.

SettingEdge shadesRelative costTypical use
2x MSAA3LowOlder or low-end hardware
4x MSAA5ModerateCommon quality sweet spot
8x MSAA9HighHigh-end GPUs, lower resolutions
16x and aboveVariesVery highVendor modes, rarely worth it
Typical MSAA levels in graphics settings

Doubling samples roughly doubles the multisampled buffer size. At 4K resolution, 8x MSAA can consume hundreds of megabytes of video memory for render targets alone, which is why the diminishing visual return beyond 4x rarely justifies the expense.

How MSAA compares with other anti-aliasing methods

MSAA is one of several approaches to anti-aliasing, and each handles a different mix of quality, sharpness and cost. Post-process filters such as FXAA and SMAA analyze the finished image, while TAA reuses information from previous frames, and machine-learning upscalers such as DLSS combine anti-aliasing with reconstruction.

MethodWhat it smoothsMain drawback
SSAAEverything, including shadingExtremely expensive
MSAAGeometry edgesMisses shader and texture aliasing
FXAADetected high-contrast edgesSoftens the whole image
SMAAEdges with pattern detectionWeak on temporal shimmer
TAAEdges, shading, shimmer over timeGhosting and blur in motion
DLSS or FSREdges while upscalingArtifacts, hardware or engine support
MSAA compared with related methods

The key distinction is that MSAA is geometry-aware but shading-blind. It produces the crispest polygon silhouettes of any common method, yet it leaves specular shimmer, thin alpha-tested foliage and high-frequency textures largely untouched.

Why many modern games no longer offer MSAA

MSAA has become rare in recent releases mainly because of deferred rendering. Deferred engines first write material data into several large G-buffers and compute lighting later, so multisampling would multiply the size of every buffer and require per-sample lighting at edges, eroding the efficiency that makes MSAA attractive.

Modern shading also creates aliasing that MSAA cannot see, such as sub-pixel specular highlights and noisy ray-traced effects. Temporal methods address these problems together, and they are also the basis for upscaling, so engines standardized on TAA and its reconstruction successors. MSAA survives in forward and Forward+ renderers, virtual reality titles, racing games and many older or stylized games.

Choosing MSAA settings in practice

The right MSAA choice depends on resolution, frame rate target and engine design. At high pixel densities aliasing is less visible, so a lower sample count or a cheaper method often suffices. The decision table below summarizes common cases.

SituationRecommended choiceReason
1080p forward-rendered game4x MSAAClean edges at moderate cost
VR headset rendering4x MSAA where supportedSharp image without temporal blur
High refresh competitive play2x MSAA or offPrioritizes frame rate
Foliage-heavy scenesMSAA plus alpha to coverageSmooths alpha-tested edges
Deferred engine, 4K outputTAA or upscalerMSAA unavailable or costly
When to use MSAA

A common mistake is forcing MSAA through driver control panels in games that use deferred rendering. The override usually has no effect or causes visual errors, and the in-game anti-aliasing options remain the reliable path.

Another frequent error is judging MSAA from still screenshots alone. Its strength appears in motion, where clean geometry edges stop crawling, while its weakness shows on shimmering foliage and fine wire meshes. Testing the setting during camera movement in the actual game gives a far more honest comparison with TAA or an upscaler than comparing static captures.

Explained without jargon

Screens are made of tiny square dots, so a slanted line drawn on them looks like a staircase. MSAA fixes this by checking several points inside each dot along the edge of an object to see how much of the dot the object really covers.

If half the points are covered, the dot gets a color halfway between the object and the background. The edge then looks smooth, like a line drawn with a soft pencil instead of building blocks, while the rest of the picture stays sharp.

A typical use case

A player runs a racing game at 1440p on a mid-range graphics card. With anti-aliasing off, the thin edges of guardrails, car bodies and power lines flicker and crawl as the camera moves along the track at high speed.

Switching to 4x MSAA removes most of the stair-stepping on cars and track barriers while keeping road textures crisp, something TAA would soften. The frame rate drops from about 110 to 95 frames per second, which stays above the monitor’s variable refresh range. The player keeps 4x and leaves 8x off, because it costs noticeably more performance for little visible gain.