euv-core 0.48.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
use super::*;

/// Process-wide persistent worker pool shared by `Renderer3D` across frames (zero per-frame `pthread_create`).
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static ENGINE3D_WORKER_POOL: OnceLock<Engine3dWorkerPool> = OnceLock::new();

/// Process-wide monotonic frame generation counter invalidating per-thread probe denoise row caches across frames.
pub(crate) static PROBE_SCRATCH_FRAME_GEN: AtomicU64 = AtomicU64::new(1);

thread_local! {
    /// Per-thread persistent L1-hot 2-row probe denoise scratch avoiding 25 KB stack zero-initialization per band.
    pub(crate) static PROBE_ROW_SCRATCH: RefCell<Box<RtProbeRowScratch>> =
        RefCell::new(Box::new(RtProbeRowScratch::default()));
}