euv-core 0.48.1

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 initialization guard enabling `timeBeginPeriod(1)` once on Windows.
pub(crate) static WIN32_HIGH_RES_TIMER_INIT: OnceLock<bool> = OnceLock::new();

/// Process-wide cached D3D12 / DXGI waitable swapchain & tearing capability probe.
pub(crate) static WIN32_DXGI_SWAPCHAIN_CONFIG: OnceLock<Win32DxgiSwapChainConfig> = OnceLock::new();

thread_local! {
    /// Thread-local Win32 event queue populated synchronously by `win32_wnd_proc`.
    pub(crate) static WIN32_EVENT_QUEUE: RefCell<Vec<Win32QueuedEvent>> = const { RefCell::new(Vec::new()) };
    /// Thread-local cached high-resolution Win32 waitable timer handle breaking the 15.625ms sleep cap.
    pub(crate) static WIN32_WAITABLE_TIMER: Cell<isize> = const { Cell::new(0) };
}