1 2 3 4 5 6 7 8 9 10 11 12
use super::*; thread_local! { /// Per-thread recycled `GpuOceanScenePass` allocation eliminating per-frame `Box` and `wake_rgba8` heap churn. pub(crate) static RECYCLED_OCEAN_SCENE_PASS: RefCell<Option<Box<GpuOceanScenePass>>> = const { RefCell::new(None) }; /// Per-thread recycled `GpuWorld3dScenePass` allocation eliminating per-frame `Box`, `instances`, and `draw_batches` heap churn. pub(crate) static RECYCLED_WORLD3D_SCENE_PASS: RefCell<Option<Box<GpuWorld3dScenePass>>> = const { RefCell::new(None) }; /// Active hysteresis-stabilized offscreen 3D/water workload resolution scale for the current frame (`1.0` = `100%` maximum quality). pub(crate) static ACTIVE_SCENE_WORKLOAD_SCALE: Cell<f32> = const { Cell::new(1.0) }; }