Version: 2022.3
LanguageEnglish
  • C#

PlayerSettings.vulkanNumSwapchainBuffers

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static uint vulkanNumSwapchainBuffers;

Description

Set the number of swapchain buffers used when rendering with Vulkan.

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.