UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
FAQ
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes

Supersampling

Supersampling is a technique used to increase the effective resolution of a frame by rendering the scene larger than its final resolution, and then downsampling back with a filter. Sharp edges become anti-aliased as they are averaged from several pixels. This provides a much smoother anti-aliasing, but for a cost of performance. This is the most demanding AA algorithm, but it offers the highest quality.

Supersampling Ratio defines the number of samples per pixel used for supersampling and is available for adjustment via the Render -> Antialiasing section of the Settings window, along with TAA and FXAA settings.

TAA Settings

Anti-Aliasing Settings

The higher the value, the more reduced aliasing is (however, high values may produce visual artifacts and significantly affect performance).

Notice
Supersampling Ratio сan be controlled by render_supersampling console command.

The resulting number of pixels after supersampling is calculated as follows:

Number of Pixels = ( Width x supersampling_ratio ) x ( Height x supersampling_ratio )

This gives us a quadratic dependence, which means that when you set supersampling ratio equal to 2 you'll have x4 pixels (i.e. a x4 FPS drop). Such ratio provides a significant reduction of artifacts inside the image – not only at boundaries but also in the textures.

A fractional value can also be set, e.g. 1.2 ratio instead of 2. In this case the image will be rendered 1.2 times larger on each axis, so not every pixel will be averaged. This is a compromise option providing a little more reduced aliasing for a slight FPS drop.

The table below demonstrates how the supersampling ratio affects the number of pixels.

Supersampling can be used either for scenes with good performance or for rendering in a cinematic mode (video clips). In some cases to reduce rendering load when supersampling is enabled, you can use the interleaved lights rendering mode.

Last update: 2019-11-28