euv-core 0.53.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

/// Minimum direct child count inside a container before `ParallelLayoutSolver` forks child subtrees across `EngineWorkerPool`.
pub const PARALLEL_LAYOUT_MIN_CHILDREN: usize = 4;

/// Minimum total subtree nodes inside a dirty frontier before `ParallelLayoutSolver` wakes background workers.
pub const PARALLEL_LAYOUT_MIN_SUBTREE_NODES: usize = 48;

/// Minimum total reachable dirty tree nodes before `LayoutEngine::compute` selects `ParallelLayoutSolver` over serial `SplitLayoutCache`.
pub const PARALLEL_LAYOUT_TREE_THRESHOLD: usize = 96;

/// Number of per-worker scratch banks (`0` = caller thread, `1..=ENGINE_WORKER_MAX_THREADS` = worker lanes).
pub(crate) const PARALLEL_SCRATCH_LANES: usize = ENGINE_WORKER_MAX_THREADS + 1;

/// Minimum rectangle count before `simd_translate_subtree_4x` takes the SIMD vector loop path.
pub(crate) const SIMD_VECTOR_LANES: usize = 4;