Reply to thread

I think it's ok :)

 

[CODE]if (_useEvr)

      {

        if (GUIGraphicsContext.currentMonitorIdx != -1)

        {

          if ((OSInfo.OSInfo.Win7OrLater() && Screen.AllScreens[GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal].Primary) || OSInfo.OSInfo.Win8OrLater())

          {

            EvrInit(_scene, (uint) upDevice.ToInt32(), ref _vmr9Filter, (uint) hMonitor.ToInt32(),

                    GUIGraphicsContext.currentMonitorIdx, false, false);

          }

          else

          {

            EvrInit(_scene, (uint)upDevice.ToInt32(), ref _vmr9Filter, (uint)hMonitor.ToInt32(),

                    GUIGraphicsContext.currentMonitorIdx, true, true);

          }

        }

        else

        {

          if ((OSInfo.OSInfo.Win7OrLater() && Screen.AllScreens[GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal].Primary) || OSInfo.OSInfo.Win8OrLater())

          {

            EvrInit(_scene, (uint) upDevice.ToInt32(), ref _vmr9Filter, (uint) hMonitor.ToInt32(),

                    GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal, false, false);

          }

          else

          {

            EvrInit(_scene, (uint)upDevice.ToInt32(), ref _vmr9Filter, (uint)hMonitor.ToInt32(),

                    GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal, true, true);

          }

        }

        hr = new HResult(graphBuilder.AddFilter(_vmr9Filter, "Enhanced Video Renderer"));

        Log.Info("VMR9: added EVR Renderer to graph");

      }[/CODE]

 

On Above code :

 

If we are on win7 and MP on primary screen or if we run Win8 : we don't disable Vsync and bias otherwise if win7 and MP is not on primary screen, Vsync and bias are disable :)


Top Bottom