Skip to main content
Version: Next (dev)

Frame Generation, Ray Reconstruction and Low Latency

Three vendor technologies sit on top of temporal upscaling:

  • Frame generation presents one or more generated images between two rendered frames, so the display shows a higher frame rate than the engine renders.
  • Ray reconstruction lets the upscaler denoise the path-traced lighting as well, in place of the engine's own denoisers.
  • Low latency paces the game loop so the CPU does not run ahead of the GPU, which cuts the delay between input and the image on screen.

The engine provides one framework for each of them. The vendor implementations come from packages: plasma.dlss (NVIDIA), plasma.fsr (AMD) and plasma.xess (Intel). Without any of these packages, the settings below have no effect, and the engine renders and paces frames as usual.

DX12 only

The frameworks and all three vendor packages run on D3D12 on Windows. Vulkan is not supported yet. Frame generation and low latency only run in game windows (the Player or a packaged game), never in the editor's viewports.

What each package provides​

PackageFrame generationRay reconstructionLow latencyHardware
plasma.dlssDLSS Frame Generation and Multi Frame Generation (DLSS)DLSS Ray ReconstructionNVIDIA Reflex (Reflex)Frame generation on RTX 40 series and newer, 3× and more on RTX 50 series. Ray reconstruction on RTX GPUs. Reflex on GeForce GPUs.
plasma.fsrFSR Frame Generation (FSR), one generated frameFSR Ray RegenerationAMD Anti-Lag 2 (AntiLag2)Frame generation on any GPU. Ray Regeneration on Radeon RX 9000 series. Anti-Lag 2 on Radeon GPUs.
plasma.xessXeSS Frame Generation (XeSS), 2× to 4×—Intel Xe Low Latency (XeLL)Up to three generated frames on Intel Arc, one on other GPUs with Shader Model 6.4.

Each package also provides that vendor's upscaler (Rendering.Upscaler DLSS, FSR or XeSS), see Temporal AA and Upscaling. Several packages can be installed side by side; the settings choose between them at run time. A backend reports itself as unsupported on GPUs it cannot run on, and the other backends keep working.

Pre-release packages

The three packages are built and tested locally but not yet released for general use. Test them on the GPUs you target before you ship them.

Vendor runtimes​

  • DLSS: the plasma.dlss plugin contains no NVIDIA code. It loads NVIDIA's signed Streamline runtime (sl.interposer.dll, sl.common.dll, sl.dlss*.dll, sl.reflex.dll, sl.pcl.dll, sl.nis.dll, nvngx_dlss*.dll) at run time, from NVIDIA's Streamline release archive. A game that uses DLSS ships these DLLs next to its executable and follows NVIDIA's DLSS branding guidelines.
  • FSR and XeSS: the packages ship AMD's FidelityFX runtime and Intel's libxess.dll, libxess_fg.dll and libxell.dll. A missing XeSS frame generation or XeLL library only marks those backends as unsupported.

Turn on frame generation​

  1. Install the vendor package and make sure its plugin loads before the graphics device is created: add it as a required plugin of the project. DLSS routes the creation of the command queues and the swap chain through Streamline; a plugin that loads later still provides DLSS upscaling, ray reconstruction and Reflex, but logs a warning that frame generation may be unavailable.
  2. Set Rendering.FrameGeneration (or the game setting Graphics.FrameGeneration) to Auto, which picks the best supported backend, or to a backend name: DLSS, FSR or XeSS.
  3. Set Rendering.FrameGeneration.Multiplier to the number of images presented per rendered frame: 2, 3, 4 or 6, limited to what the backend supports. 0 is dynamic: the backend picks the multiplier to reach Rendering.FrameGeneration.DynamicTargetFps (0 = the display's refresh rate). A backend without a dynamic mode (XeSS) generates as many frames as it can at 0.
  4. Run the game in the Player or a packaged build. The log shows, for example, Frame generation: DLSS (2x). and later how many images are presented per rendered frame.

FSR and XeSS frame generation replace the game window's swap chain with their own, so switching frame generation on or off re-creates the swap chain. XeSS frame generation does not support FP16 (scRGB) HDR back buffers.

Frame generation needs a good image to start from, so combine it with an upscaler or TAA. It only runs on the main game view (not on stereo XR views).

2x crops of the same Sponza view (DX12, RTX 4080, 1080p) with TAA, DLSS Super Resolution, and DLSS, XeSS and FSR frame generation: the curtain pattern and the hanging brazier keep the same detail with each backend

UI and HUD​

Generated frames are interpolated from the scene, so UI drawn on top would smear. While frame generation is active, the final pass draws the GUI separately and keeps a HUD-less copy of the scene for the backend:

  • DLSS and FSR take the UI from the difference between the back buffer and the HUD-less scene image.
  • XeSS interpolates the UI together with the scene (its default); the HUD-less image is only used when its format matches the back buffer.

Turn on low latency​

Low latency is on by default (Rendering.LowLatency 1) and takes effect as soon as a supported backend is installed:

ValueModeDescription
0OffThe engine paces frames on its own.
1On (default)The backend delays the start of each frame's simulation so that input is read as late as possible.
2BoostAs On, and also keeps GPU clocks up. Backends without a boost mode treat it as On.

Rendering.LowLatency.Backend picks the backend: Auto (default) or Reflex, XeLL, AntiLag2. A frame generation backend that needs a specific low-latency backend selects it itself, and turns low latency on even when the setting is Off: DLSS frame generation runs with Reflex, XeSS frame generation with XeLL. If the required backend is not available, frame generation runs without one rather than with another vendor's. On non-Intel GPUs, XeLL only lowers latency while XeSS frame generation runs, so Auto prefers other backends there.

Rendering.LowLatency.FrameLimit caps the frame rate through the low-latency backend, which adds less latency than a sleep-based cap (0 = no cap). The game's own frame limiter, App.FpsCap (120 fps by default on desktop, see Game Settings), paces the frames the engine renders.

Ray reconstruction​

Rendering.Upscaler.RayReconstruction (game setting Graphics.RayReconstruction) is on by default. It takes effect when all of these hold:

  • The active upscaler has a ray reconstruction backend of the same vendor: DLSS with DLSS Ray Reconstruction, or FSR with FSR Ray Regeneration (Radeon RX 9000 series).
  • The view uses the path tracing pass, that is the diffuse GI technique is path traced (Rendering.GI.Diffuse.Technique 1, see Global Illumination).

While it runs, the path tracer skips its NRD denoiser and hands the noisy lighting together with guide images (albedo, normals and roughness, specular hit distance) to the upscaler, which denoises and upscales in one step. With any other upscaler or GI technique, the usual denoisers run.

Game settings and the editor​

The game settings service writes these CVars from the player's settings, see Game Settings:

Game settingDefaultWrites
Graphics.FrameGeneration"Off"Rendering.FrameGeneration
Graphics.FrameGeneration.Multiplier2Rendering.FrameGeneration.Multiplier
Graphics.FrameGeneration.DynamicTargetFps0Rendering.FrameGeneration.DynamicTargetFps
Graphics.LowLatency1 (On)Rendering.LowLatency
Graphics.LowLatency.Backend"Auto"Rendering.LowLatency.Backend
Graphics.LowLatency.FrameLimit0Rendering.LowLatency.FrameLimit
Graphics.RayReconstructiontrueRendering.Upscaler.RayReconstruction

The choices that GetQualityDescriptors() reports for Graphics.FrameGeneration and Graphics.LowLatency.Backend list only the backends that the installed packages support on the current GPU, so a settings menu never offers a backend that cannot run. No quality preset sets these values.

In the editor, the Quality Settings panel has a Frame generation group (Frame generation, Images per rendered frame, Dynamic target frame rate, Low latency, Low-latency backend, Frame limit), and Ray reconstruction (path traced views) in the Upscaling group. The editor's own viewports never generate frames or apply low latency; the entries set the CVars of the editor's engine process like any other panel override.

Quality Settings panel with the Upscaling group (upscaler, mode, render scale, sharpness, editor viewports, dynamic resolution, ray reconstruction) and the Frame Generation group (frame generation, images per rendered frame, dynamic target frame rate, low latency)

Console variables​

CVarDefaultDescription
Rendering.FrameGeneration"Off"Off, Auto (best supported) or a backend name: DLSS, FSR, XeSS. Game windows only.
Rendering.FrameGeneration.Multiplier2Images presented per rendered frame: 2, 3, 4 or 6, limited by the backend. 0 = dynamic.
Rendering.FrameGeneration.DynamicTargetFps0Frame rate the dynamic multiplier aims for. 0 = the display's refresh rate.
Rendering.LowLatency10 = off, 1 = on, 2 = boost.
Rendering.LowLatency.Backend"Auto"Auto or a backend name: Reflex, XeLL, AntiLag2.
Rendering.LowLatency.FrameLimit0Frame rate cap applied by the low-latency backend. 0 = none.
Rendering.Upscaler.RayReconstructiontrueLet the upscaler denoise the ray-traced lighting too, on pipelines with the path tracing pass.

All of them are saved CVars. In a game that uses the game settings service, the player's Graphics.* settings above write them at startup and whenever they change.

Stats​

Open the stats in the Inspector or the Stats view to see what runs:

StatMeaning
Renderer/FrameGeneration/BackendThe active frame generation backend, or Off.
Renderer/FrameGeneration/PresentedPerFrameImages presented per rendered frame (1 while nothing is generated).
Renderer/LowLatency/BackendThe active low-latency backend, or Off.
Renderer/LowLatency/SimulationToPresent[ms]Latency from the start of the simulation to the end of the present, when the backend measures it.
Renderer/LowLatency/GpuFrame[ms]GPU time of the measured frame, when the backend measures it.

Troubleshooting​

SymptomLikely causeWhat to do
Frame generation does nothing in the editorFrame generation and low latency only run in game windows.Run the game in the Player or a packaged build.
Renderer/FrameGeneration/Backend stays OffNo package provides the selected backend, the GPU does not support it, or the renderer is not DX12.Check the log for a warning about the selection, install the package, or try Auto. Switch the project to DX12.
DLSS upscaling works but frame generation is unavailable, with a warning in the logThe DLSS plugin loaded after the graphics device was created.Make the plugin a required plugin of the project so it loads at startup.
DLSS fails to startThe Streamline runtime DLLs are missing or not signed by NVIDIA.Copy the runtime from NVIDIA's Streamline release archive next to the executable.
The HUD smears or ghosts in generated framesThe backend interpolates the UI with the scene, or the HUD-less image format does not match the back buffer.Compare with another backend; with XeSS, use a back buffer format that matches the scene image.
Ray reconstruction has no effectThe upscaler is not DLSS or FSR, the GPU does not support it, or the diffuse GI technique is not path traced.Use the matching upscaler and Rendering.GI.Diffuse.Technique 1.
The frame rate is capped although VSync is offThe desktop default App.FpsCap of 120 fps applies.Change Display.FpsCap in the game settings, or set App.FpsCap 0.

See Also​