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
Development
General Development (no feature request here!)
MP1 EVR Presenter/dshowhelper community development
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="disaster123" data-source="post: 847022" data-attributes="member: 74707"><p><a href="https://forum.team-mediaportal.com/members/owlsroost.83973/" target="_blank">Owlsroost</a></p><p>i could "fix" the 2 minute stuttering by using the latest available git Accurate_Sync branch and applying the following patch (it just groups the important settings) and enables MCSS for the threads (except DWM) and sets all priorities to HIGH for them.</p><p>[CODE]</p><p>diff --git a/dshowhelper_DWM_mod/source/EVRCustomPresenter.h b/dshowhelper_DWM_mod/source/EVRCustomPresenter.h</p><p>index 7aac199..82af208 100644</p><p>--- a/dshowhelper_DWM_mod/source/EVRCustomPresenter.h</p><p>+++ b/dshowhelper_DWM_mod/source/EVRCustomPresenter.h</p><p>@@ -29,6 +29,7 @@ using namespace std;</p><p> //Disables MP audio renderer functions if true</p><p> #define NO_MP_AUD_REND false</p><p> </p><p>+</p><p> //Enables DWM parameter changes if true</p><p> #define ENABLE_DWM_SETUP true</p><p> //#define ENABLE_DWM_SETUP false</p><p>@@ -36,6 +37,19 @@ using namespace std;</p><p> //Enables reset of DWM parameters if true</p><p> #define ENABLE_DWM_RESET true</p><p> </p><p>+//Bring Scheduler/Worker/Timer threads under Multimedia Class Scheduler Service (MMCSS) control if 'true'</p><p>+#define SCHED_ENABLE_MMCSS true</p><p>+#define WORKER_ENABLE_MMCSS true</p><p>+#define TIMER_ENABLE_MMCSS true</p><p>+</p><p>+//MMCSS priority levels for Scheduler/Worker/Timer threads</p><p>+#define SCHED_MMCSS_PRIORITY AVRT_PRIORITY_HIGH</p><p>+#define WORKER_MMCSS_PRIORITY AVRT_PRIORITY_HIGH</p><p>+#define TIMER_MMCSS_PRIORITY AVRT_PRIORITY_HIGH</p><p>+</p><p>+//Bring DWM under Multimedia Class Scheduler Service (MMCSS) control if 'true'</p><p>+#define DWM_ENABLE_MMCSS false</p><p>+</p><p> //Enables repeated rendering of last sample when queue becomes empty if true</p><p> #define ENABLE_EMPTY_RENDER true</p><p> //#define ENABLE_EMPTY_RENDER false</p><p>@@ -71,24 +85,10 @@ using namespace std;</p><p> //skip DwmInit() if display refresh period is > 25.0 ms (i.e. below 40Hz refresh rate)</p><p> #define DWM_REFRESH_THRESH 25.0</p><p> </p><p>-//Bring Scheduler/Worker/Timer threads under Multimedia Class Scheduler Service (MMCSS) control if 'true'</p><p>-#define SCHED_ENABLE_MMCSS false</p><p>-#define WORKER_ENABLE_MMCSS true</p><p>-#define TIMER_ENABLE_MMCSS true</p><p>-</p><p>-//MMCSS priority levels for Scheduler/Worker/Timer threads</p><p>-#define SCHED_MMCSS_PRIORITY AVRT_PRIORITY_HIGH</p><p>-#define WORKER_MMCSS_PRIORITY AVRT_PRIORITY_NORMAL</p><p>-#define TIMER_MMCSS_PRIORITY AVRT_PRIORITY_LOW</p><p>-</p><p> //MMCSS 'Task' type</p><p> #define MMCSS_REG_TASK L"Playback"</p><p> #define MMCSS_SCH_REG_TASK L"Playback"</p><p> </p><p>-//Bring DWM under Multimedia Class Scheduler Service (MMCSS) control if 'true'</p><p>-#define DWM_ENABLE_MMCSS false</p><p>-</p><p>-</p><p> // magic numbers</p><p> #define DEFAULT_FRAME_TIME 200000 // used when fps information is not provided (PAL interlaced == 50fps)</p><p> </p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="disaster123, post: 847022, member: 74707"] [URL='https://forum.team-mediaportal.com/members/owlsroost.83973/']Owlsroost[/URL] i could "fix" the 2 minute stuttering by using the latest available git Accurate_Sync branch and applying the following patch (it just groups the important settings) and enables MCSS for the threads (except DWM) and sets all priorities to HIGH for them. [CODE] diff --git a/dshowhelper_DWM_mod/source/EVRCustomPresenter.h b/dshowhelper_DWM_mod/source/EVRCustomPresenter.h index 7aac199..82af208 100644 --- a/dshowhelper_DWM_mod/source/EVRCustomPresenter.h +++ b/dshowhelper_DWM_mod/source/EVRCustomPresenter.h @@ -29,6 +29,7 @@ using namespace std; //Disables MP audio renderer functions if true #define NO_MP_AUD_REND false + //Enables DWM parameter changes if true #define ENABLE_DWM_SETUP true //#define ENABLE_DWM_SETUP false @@ -36,6 +37,19 @@ using namespace std; //Enables reset of DWM parameters if true #define ENABLE_DWM_RESET true +//Bring Scheduler/Worker/Timer threads under Multimedia Class Scheduler Service (MMCSS) control if 'true' +#define SCHED_ENABLE_MMCSS true +#define WORKER_ENABLE_MMCSS true +#define TIMER_ENABLE_MMCSS true + +//MMCSS priority levels for Scheduler/Worker/Timer threads +#define SCHED_MMCSS_PRIORITY AVRT_PRIORITY_HIGH +#define WORKER_MMCSS_PRIORITY AVRT_PRIORITY_HIGH +#define TIMER_MMCSS_PRIORITY AVRT_PRIORITY_HIGH + +//Bring DWM under Multimedia Class Scheduler Service (MMCSS) control if 'true' +#define DWM_ENABLE_MMCSS false + //Enables repeated rendering of last sample when queue becomes empty if true #define ENABLE_EMPTY_RENDER true //#define ENABLE_EMPTY_RENDER false @@ -71,24 +85,10 @@ using namespace std; //skip DwmInit() if display refresh period is > 25.0 ms (i.e. below 40Hz refresh rate) #define DWM_REFRESH_THRESH 25.0 -//Bring Scheduler/Worker/Timer threads under Multimedia Class Scheduler Service (MMCSS) control if 'true' -#define SCHED_ENABLE_MMCSS false -#define WORKER_ENABLE_MMCSS true -#define TIMER_ENABLE_MMCSS true - -//MMCSS priority levels for Scheduler/Worker/Timer threads -#define SCHED_MMCSS_PRIORITY AVRT_PRIORITY_HIGH -#define WORKER_MMCSS_PRIORITY AVRT_PRIORITY_NORMAL -#define TIMER_MMCSS_PRIORITY AVRT_PRIORITY_LOW - //MMCSS 'Task' type #define MMCSS_REG_TASK L"Playback" #define MMCSS_SCH_REG_TASK L"Playback" -//Bring DWM under Multimedia Class Scheduler Service (MMCSS) control if 'true' -#define DWM_ENABLE_MMCSS false - - // magic numbers #define DEFAULT_FRAME_TIME 200000 // used when fps information is not provided (PAL interlaced == 50fps) [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MP1 EVR Presenter/dshowhelper community development
Contact us
RSS
Top
Bottom