dot-resolve_vae_tiling: Resolve VAE tiling mode to boolean

.resolve_vae_tilingR Documentation

Resolve VAE tiling mode to boolean

Description

In "auto" mode, queries free VRAM from the Vulkan backend and compares against .estimate_vae_vram. Falls back to the pixel-area vae_auto_threshold when VRAM query is unavailable.

Usage

.resolve_vae_tiling(
  vae_mode,
  vae_tiling,
  width,
  height,
  vae_auto_threshold,
  ctx = NULL,
  batch = 1L,
  system_reserve = 50 * 1024^2
)

Arguments

vae_mode

One of "normal", "tiled", "auto"

vae_tiling

Deprecated boolean flag (NULL if not set)

width

Image width in pixels

height

Image height in pixels

vae_auto_threshold

Pixel area threshold — fallback for auto mode when VRAM query fails

ctx

SD context (used to read device index and model_type). NULL disables VRAM-aware logic.

batch

Batch size for VRAM estimation (default 1)

system_reserve

Bytes to keep free as safety margin (default 50 MB)

Value

Logical, TRUE if tiling should be enabled


sd2R documentation built on March 30, 2026, 5:08 p.m.