# R multiSamples (cvar)

## Description

Enables/disables antialiasing and sets by how much the scenes are antialiased.

## Usage

At the console type…

r_multisamples [int]

## Parameters

• [int] - Number of samples to use by anti-aliasing. (2, 4, 8, 16)

## Flags

Flag Enabled Description
CVAR_ALL all flags
CVAR_BOOL variable is a boolean
CVAR_INTEGER X variable is an integer
CVAR_FLOAT variable is a float
CVAR_SYSTEM system variable
CVAR_RENDERER X renderer variable
CVAR_SOUND sound variable
CVAR_GUI gui variable
CVAR_GAME game variable
CVAR_TOOL tool variable
CVAR_USERINFO sent to servers, available to menu
CVAR_SERVERINFO sent from servers, available to menu
CVAR_NETWORKSYNC cvar is synced from the server to clients
CVAR_STATIC X statically declared, not user created
CVAR_CHEAT variable is considered a cheat
CVAR_NOCHEAT variable is not considered a cheat
CVAR_INIT can only be set from the command-line
CVAR_ROM display only, cannot be set by user at all
CVAR_ARCHIVE X set to cause it to be saved to a config file
CVAR_MODIFIED X set when the variable is modified

## Notes

This CVar is changed automatically by the Options > System > Advanced Options > Antialiasing. Current ATi hardware is only capable of using up to 6 antialiased samples (using MSAA) while nVidia is capable of up to 8 samples but only as a MSAA/SSAA combination (only 4 samples using straight MSAA). What this means is that setting a value higher than 4 or 8 depending on the hardware used will produce no changes. To avoid overriding this CVar by the settings in the graphics display control panel, the anti-aliasing settings should be set to “Application Preference” in the control panel. This CVar requires the vid_restart console command to produce any change.