namespace AcDream.App.Rendering.Wb; /// /// Process-lifetime cache of ACDREAM_USE_WB_FOUNDATION env var. /// Read once at static-init time; all consumers import this rather than /// re-reading the env var per call (env-var lookups on Windows are not /// free at hot-path cadence). /// /// /// Set ACDREAM_USE_WB_FOUNDATION=1 to route static-scenery + atlas /// content through WB's ObjectMeshManager; per-instance customized /// content (server CreateObject entities) takes the existing /// path either /// way. Flag becomes default-on at end of Phase N.4 after visual /// verification. /// /// public static class WbFoundationFlag { public static bool IsEnabled { get; } = System.Environment.GetEnvironmentVariable("ACDREAM_USE_WB_FOUNDATION") == "1"; }