public static int renderingEventOffset = 0x43570000; // => 'CW\0\0' public static void SetConfigParameters(bool graphicsMultiThreaded, int num_decoders, int max_num_of_entries) { #if (UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7 || UNITY_5_0) int graphicsApi = (int)GraphicsApi.Unknown; #if !UNITY_EDITOR && (UNITY_IOS || Unity_TVOS) if (SystemInfo.graphicsDeviceVersion.IndexOf("OpenGL ES 2.") > -1) { graphicsApi = (int)GraphicsApi.OpenGLES_2_0; } else if (SystemInfo.graphicsDeviceVersion.IndexOf("OpenGL ES 3.") > -1) { graphicsApi = (int)GraphicsApi.OpenGLES_3_0; } else if (SystemInfo.graphicsDeviceVersion.IndexOf("Metal") > -1) { graphicsApi = (int)GraphicsApi.Metal; } #endif #else int graphicsApi = (int)SystemInfo.graphicsDeviceType; #endif enabledMultithreadedRendering = graphicsMultiThreaded; CriWare.criWareUnity_SetRenderingEventOffsetForMana(renderingEventOffset); CriManaPlugin.criManaUnity_SetConfigParameters((int)graphicsApi, enabledMultithreadedRendering, num_decoders, max_num_of_entries); }