- October 17, 2007
- 764
- 59
- Home Country
-
Germany
AW: Re: MP1 EVR Presenter/dshowhelper community development
Unfortunately, the estimation works not as expected on my system... I think many dropped frames and a light stutter where introduced with this. Right now, I'm working on the dshowhelper
I will report back in few minutes
EDIT:
Seems to have no effect. I will try few days, to see if there are improvements...
Tried this. But this makes it really worse. Dropped frames everywhere
Will do this and collect some logs.
EDIT2:
only modification: deleted refresh rate estimation.
a little part of the logs (no dropped frames), while playing a 1080i .ts file:
LiveTV is running. 95.000 frames drawn, 208 dropped.
Win 7 is able to report accurate refresh rates - Vista can't, so I have to use the estimator for Vista i.e. my system - I'll loosen up the matching limit so it's more likely to get a correct refresh rate match - problem is, it doesn't go wrong for me so it's hard to test it.....
Unfortunately, the estimation works not as expected on my system... I think many dropped frames and a light stutter where introduced with this. Right now, I'm working on the dshowhelper
EDIT:
In 'Scheduler.cpp' the Timer and Worker threads are under Multimedia Class Scheduler Service (MMCSS) control - the SchedulerThread isn't (because it seems to have side effects sometimes) but you could try enabling it - just un-comment the code blocks at the beginnng & end of the function.
Seems to have no effect. I will try few days, to see if there are improvements...
You could also try commenting out:
p->pPresenter->NotifyTimer(hnsTargetTime); //Wake up Timer thread
and modify 'timDel + 1' to 'timDel' on the next line, so that the TimerThread timer isn't used - it will save a little bit of CPU time.
Tried this. But this makes it really worse. Dropped frames everywhere
In 'EVRCustomPresenter.h' if you:
// uncomment the //Log to enable extra logging
#define LOG_DELAYS //Log
Will do this and collect some logs.
EDIT2:
only modification: deleted refresh rate estimation.
a little part of the logs (no dropped frames), while playing a 1080i .ts file:
Code:
09-07-2010 14:20:14.694 [598]High latency in TimerThread: 11.54 ms
09-07-2010 14:20:15.159 [598]High latency in TimerThread: 10.42 ms
09-07-2010 14:20:16.176 [598]High latency in TimerThread: 10.90 ms
09-07-2010 14:20:16.276 [598]High latency in TimerThread: 10.51 ms
09-07-2010 14:20:16.930 [6d4]High WFMO timeout latency in SchedulerThread: 6.11 ms, target: 5.27 ms
09-07-2010 14:20:17.826 [598]High latency in TimerThread: 10.74 ms
09-07-2010 14:20:17.826 [598]High latency in TimerThread: 10.82 ms
09-07-2010 14:20:18.160 [598]High latency in TimerThread: 11.19 ms
09-07-2010 14:20:19.038 [6d4]High WFMO timeout latency in SchedulerThread: 6.65 ms, target: 2.14 ms
09-07-2010 14:20:19.521 [598]High latency in TimerThread: 11.42 ms
09-07-2010 14:20:20.527 [598]High latency in TimerThread: 12.23 ms
09-07-2010 14:20:20.620 [6d4]High WFMO timeout latency in SchedulerThread: 5.88 ms, target: 2.17 ms
09-07-2010 14:20:22.638 [598]High latency in TimerThread: 24.96 ms
09-07-2010 14:20:22.638 [598]High latency in TimerThread: 25.03 ms
09-07-2010 14:20:23.026 [598]High latency in TimerThread: 11.66 ms
09-07-2010 14:20:23.086 [6d4]High WFMO timeout latency in SchedulerThread: 5.76 ms, target: 1.60 ms
09-07-2010 14:20:23.119 [6d4]High WFMO timeout latency in SchedulerThread: 5.04 ms, target: 1.20 ms
09-07-2010 14:20:23.292 [6d4]High WFMO timeout latency in SchedulerThread: 11.00 ms, target: 1.15 ms
09-07-2010 14:20:23.338 [598]High latency in TimerThread: 13.54 ms
09-07-2010 14:20:23.357 [598]High latency in TimerThread: 10.59 ms
09-07-2010 14:20:23.357 [598]High latency in TimerThread: 10.68 ms
09-07-2010 14:20:23.371 [6d4]High WFMO timeout latency in SchedulerThread: 7.36 ms, target: 2.20 ms
09-07-2010 14:20:23.392 [6d4]High WFMO timeout latency in SchedulerThread: 10.78 ms, target: 1.09 ms
09-07-2010 14:20:23.491 [598]High latency in TimerThread: 10.54 ms
09-07-2010 14:20:24.709 [598]High latency in TimerThread: 12.53 ms
09-07-2010 14:20:24.709 [598]High latency in TimerThread: 12.61 ms
09-07-2010 14:20:26.113 [598]High latency in TimerThread: 17.45 ms
09-07-2010 14:20:26.113 [598]High latency in TimerThread: 17.54 ms
09-07-2010 14:20:27.124 [598]High latency in TimerThread: 10.49 ms
LiveTV is running. 95.000 frames drawn, 208 dropped.