Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


vulkanNumSwapchainBuffers

Set the number of swapchain buffers used when rendering with Vulkan.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static uint vulkanNumSwapchainBuffers { get; set; }

Remarks

The swapchain manages the sequence of images that are presented to the display.
Valid range:
2-3
buffers. The default value is
3
.
  • 2
    : Lowers latency but requires precise synchronization between rendering and presentation. Frame stuttering might occur if the renderer can't match the display refresh rate.
  • 3
    : Provides better frame pacing and more consistent performance, at the cost of slightly higher latency.
Note: In the Editor, this value is always locked to
3
during Play mode to ensure stable playback while editing. The setting is applied in builds and when not in Play mode.