PrivatependingPrivateresizeSchedule a resize. Coalesces multiple synchronous resize events into a single rAF callback so a burst of ResizeObserver fires doesn't trigger N renderer resizes.
Dimensions come from getDims (SceneManager passes its parent-first
canvas measurement so embedded viewers track their host container);
defaults to the window size for window-sized callers.
Apply a resize immediately (no rAF coalescing). Used by the manual adaptive-DPR path which already runs at frame-level granularity. Falls back to direct renderer sizing when post-processing hasn't been initialised yet.
Cancel any in-flight rAF and clear pending state. Called on SceneManager.dispose().
PrivatedoPrivateupdate
Suppress resize while a recording is in progress (resolution must stay locked).