CacheTreeMode
Constants for Node.setCacheAsTree.
ts
import { CacheTreeMode } from "willow";CacheTreeMode
ts
class CacheTreeModeCache tree invalidation mode. Controls when a cached subtree is invalidated.
CacheTreeMode: static properties
| Member | Description |
|---|---|
static readonly MANUAL: int | Cache invalidates only on explicit invalidateCache() call. Zero overhead on setters. Best for large static tilemaps. |
static readonly AUTO: int | Cache invalidates automatically when any field is written on the cached node or its descendants. Small overhead per setter call (one pointer chase + bool write). |