home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Area 51 - Testing Area
MP1-4100 Rework Refresh Rate when using multi monitor
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sebastiii" data-source="post: 1017362" data-attributes="member: 60104"><p>I think it's ok <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p> </p><p>[CODE]if (_useEvr)</p><p> {</p><p> if (GUIGraphicsContext.currentMonitorIdx != -1)</p><p> {</p><p> if ((OSInfo.OSInfo.Win7OrLater() && Screen.AllScreens[GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal].Primary) || OSInfo.OSInfo.Win8OrLater())</p><p> {</p><p> EvrInit(_scene, (uint) upDevice.ToInt32(), ref _vmr9Filter, (uint) hMonitor.ToInt32(),</p><p> GUIGraphicsContext.currentMonitorIdx, false, false);</p><p> }</p><p> else</p><p> {</p><p> EvrInit(_scene, (uint)upDevice.ToInt32(), ref _vmr9Filter, (uint)hMonitor.ToInt32(),</p><p> GUIGraphicsContext.currentMonitorIdx, true, true);</p><p> }</p><p> }</p><p> else</p><p> {</p><p> if ((OSInfo.OSInfo.Win7OrLater() && Screen.AllScreens[GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal].Primary) || OSInfo.OSInfo.Win8OrLater())</p><p> {</p><p> EvrInit(_scene, (uint) upDevice.ToInt32(), ref _vmr9Filter, (uint) hMonitor.ToInt32(),</p><p> GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal, false, false);</p><p> }</p><p> else</p><p> {</p><p> EvrInit(_scene, (uint)upDevice.ToInt32(), ref _vmr9Filter, (uint)hMonitor.ToInt32(),</p><p> GUIGraphicsContext.DX9Device.DeviceCaps.AdapterOrdinal, true, true);</p><p> }</p><p> }</p><p> hr = new HResult(graphBuilder.AddFilter(_vmr9Filter, "Enhanced Video Renderer"));</p><p> Log.Info("VMR9: added EVR Renderer to graph");</p><p> }[/CODE]</p><p> </p><p>On Above code :</p><p> </p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1017362, member: 60104"] 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 :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
MP1-4100 Rework Refresh Rate when using multi monitor
Contact us
RSS
Top
Bottom