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
Support
Watch / Listen Media
watch/edit Videos
Stutter after refresh rate change
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="nyt" data-source="post: 562788" data-attributes="member: 98737"><p>Thanks for that.</p><p></p><p></p><p> Dwm.DWM_PRESENT_PARAMETERS pparams = new Dwm.DWM_PRESENT_PARAMETERS();</p><p> pparams.cbSize = Marshal.SizeOf(typeof(Dwm.DWM_PRESENT_PARAMETERS));</p><p> pparams.fQueue = 1;</p><p> pparams.cBuffer = 4;</p><p> pparams.fUseSourceRate = 0;</p><p> pparams.cRefreshesPerFrame = 1;</p><p> pparams.eSampling = Dwm.DWM_SOURCE_FRAME_SAMPLING.DWM_SOURCE_FRAME_SAMPLING_POINT;</p><p></p><p> Dwm.DwmSetPresentParameters(GUIGraphicsContext.DX9Device.PresentationParameters.DeviceWindowHandle, ref pparams);</p><p></p><p>This seems to work.</p><p></p><p>I'll post a full patch after more testing.</p><p></p><p>MP calculates time between frames right? The reason I set fUseSourceRate to 0 is because setting the rate this way might cause funny issues.</p><p></p><p>It does work though, but doing this just doesn't seem right.</p><p></p><p> pparams.fUseSourceRate = 1;</p><p> pparams.rateSource.uiNumerator = (int)(refreshRate * 1000);</p><p> pparams.rateSource.uiDenominator = 1000;</p><p></p><p>...</p><p></p><p>hm, setting the buffer causes jutter on scene changes briefly.</p><p></p><p>still trying to tweak this to work 100%, but very very close.</p><p></p><p>I can't quite get it perfect. There is still some jerkiness coming up in playback no matter what I do. Not as bad as the stutter, but it's there =[</p><p></p><p>If I win-tab during playback (without this code in place) I get perfectly smooth playback. I'll keep at it until I can reproduce that with code.</p></blockquote><p></p>
[QUOTE="nyt, post: 562788, member: 98737"] Thanks for that. Dwm.DWM_PRESENT_PARAMETERS pparams = new Dwm.DWM_PRESENT_PARAMETERS(); pparams.cbSize = Marshal.SizeOf(typeof(Dwm.DWM_PRESENT_PARAMETERS)); pparams.fQueue = 1; pparams.cBuffer = 4; pparams.fUseSourceRate = 0; pparams.cRefreshesPerFrame = 1; pparams.eSampling = Dwm.DWM_SOURCE_FRAME_SAMPLING.DWM_SOURCE_FRAME_SAMPLING_POINT; Dwm.DwmSetPresentParameters(GUIGraphicsContext.DX9Device.PresentationParameters.DeviceWindowHandle, ref pparams); This seems to work. I'll post a full patch after more testing. MP calculates time between frames right? The reason I set fUseSourceRate to 0 is because setting the rate this way might cause funny issues. It does work though, but doing this just doesn't seem right. pparams.fUseSourceRate = 1; pparams.rateSource.uiNumerator = (int)(refreshRate * 1000); pparams.rateSource.uiDenominator = 1000; ... hm, setting the buffer causes jutter on scene changes briefly. still trying to tweak this to work 100%, but very very close. I can't quite get it perfect. There is still some jerkiness coming up in playback no matter what I do. Not as bad as the stutter, but it's there =[ If I win-tab during playback (without this code in place) I get perfectly smooth playback. I'll keep at it until I can reproduce that with code. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
watch/edit Videos
Stutter after refresh rate change
Contact us
RSS
Top
Bottom