public static ChangeResult Apply(MyGraphicsSettings1 settings)
        {
            MySandboxGame.Log.WriteLine("MyVideoModeManager.Apply(MyGraphicsSettings1)");
            using (MySandboxGame.Log.IndentUsing())
            {
                MySandboxGame.Log.WriteLine("HardwareCursor: " + settings.HardwareCursor);
                MySandboxGame.Log.WriteLine("Field of view: " + settings.FieldOfView);
                MySandboxGame.Log.WriteLine("Render.InterpolationEnabled: " + settings.Render.InterpolationEnabled);
                MySandboxGame.Log.WriteLine("Render.MultithreadingEnabled: " + settings.Render.MultithreadingEnabled);
                MySandboxGame.Log.WriteLine("Render.AntialiasingMode: " + settings.Render.AntialiasingMode);
                MySandboxGame.Log.WriteLine("Render.ShadowQuality: " + settings.Render.ShadowQuality);
                MySandboxGame.Log.WriteLine("Render.TextureQuality: " + settings.Render.TextureQuality);
                MySandboxGame.Log.WriteLine("Render.AnisotropicFiltering: " + settings.Render.AnisotropicFiltering);
                MySandboxGame.Log.WriteLine("Render.FoliageDetails: " + settings.Render.FoliageDetails);

                if (m_currentGraphicsSettings1.Equals(ref settings))
                {
                    return(ChangeResult.NothingChanged);
                }

                SetEnableDamageEffects(settings.EnableDamageEffects);
                SetFov(settings.FieldOfView);
                SetHardwareCursor(settings.HardwareCursor);

                if (!m_currentGraphicsSettings1.Render.Equals(ref settings.Render))
                {
                    m_currentGraphicsSettings1.Render = settings.Render;
                    MyRenderProxy.SwitchRenderSettings(settings.Render);
                }
            }

            return(ChangeResult.Success);
        }
        public static ChangeResult ApplyVideoSettings(MyRenderDeviceSettings deviceSettings, MyGraphicsSettings1 graphicsSettings)
        {
            var res = Apply(deviceSettings);

            if (res == ChangeResult.Failed)
            {
                return(res);
            }

            var res2 = Apply(graphicsSettings);

            Debug.Assert(res2 != ChangeResult.Failed, "Changing graphics settings should never fail, only device settings can!");
            return(res == ChangeResult.Success ? res : res2);
        }