| |||||||
| General Support Post problems you have when using MediaPortal, or pre installation questions in here. |
![]() |
| | Thread Tools | Display Modes |
| | #81 (permalink) |
| Portal Developer Join Date: Jan 2005 Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts
| Findings Part III: Now, I'm pretty sure that I had already tested the CPU affinity only set to one CPU core. Somehow my mind must be doing its tricks. After setting CPU affinity in Task Manager (for MP) to one CPu core only the flickering goes away on my dual core dev PC. In EVR renderer there is old GetTickCount() used wich is not working correctly on multi core CPUs (both cores could return different register values depending how the CPU itself has done its power saving as it can be done on ore basis nowadays). Unfortunately it didn't help when I replaced all the GetTickCount() calls with QueryPerformanceCounter(). So, does anyone know if MP is using some other timekeeping methods than the QueryPerformanceCounter() in some other parts? If not then I guess I'll have to give up on debugging this issue and just use the ugly "hack" to set the process affinity as MP doesn't seem to like multi core CPUs.
__________________ http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" Last edited by tourettes; 2008-04-24 at 14:20. |
| | |
| | #82 (permalink) |
| Portal Developer Join Date: Jan 2005 Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts
| Findings Part IV: Using Prime95 to max out the CPU usage to 100% flickering is also "cured". I would assume that same thing happens when you disable the Cool and Quiet feature (but I'm too lazy to test that). So in the end it definately shows that MP is using some wrong timer code (unfortunately fixing the EVR renderer to use QueryPerformanceCounter() is not enough to fix the issue). Anyone willing to go thru all MP code and check what timer and timestamp counter code is used? ![]()
__________________ http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" |
| | |
| | #83 (permalink) |
| Portal Developer Join Date: Jan 2005 Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts
| Eabin, I see that you are reading this topic now Please come to IRC...
__________________ http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" |
| | |
| | #85 (permalink) |
| Portal Member Join Date: Aug 2006 Location: Stockholm Age: 37
Posts: 252
Thanks: 11
Thanked 7 Times in 7 Posts
Country: | tourettes, eabin for your efforts.Regarding your findings of processor affinity - I've made an application fix .sdb file that should work both for XP and VISTA that tells the OS to use "SingleProcAffinity" for MediaPortal.exe. I've created this from Windows Compatibility Toolkit. I haven't tested it yet, but it should work. Let me know otherwise. I've attached a screenshot of the tool and how it is configured for those interested, and also the created mediaportal_compat.sdb file,. You would download the mediaportal_compat.sdb(zip) and run in a command prompt: "sdbinst mediaportal_compat.sdb" and it should install. After that you should not need to set the processor affinity manually anymore. I've not have time to test it yet on my machine - so bear with me if it doesn't work. It's a workaround for the time being anyway...
__________________ Most wanted feature(s) in MP/TVE3: [TV Card priority when recording] Last edited by pnyberg; 2008-04-25 at 16:15. Reason: Forgot to attach files... |
| | |
| | #86 (permalink) |
| Portal Member | @pnyberg This reduces the flicker issue greatly (if you scroll through the TV-guide, it still flickers sometimes) and Mediaportal seems to be more stable with this... but... Mediaportal can't use both cores of the CPU anymore. So if you playback some 1080P-MKVs within Mediaportal... it stutters now! I hope there could be another solution... to make Mediaportal more "Dualcore-friendly". ![]() Can the gui set to be "SingleProcAffinity" seperately? ^^ Last edited by mironicus; 2008-04-26 at 00:39. |
| | |
| | #87 (permalink) |
| Portal Member Join Date: Aug 2006 Location: Stockholm Age: 37
Posts: 252
Thanks: 11
Thanked 7 Times in 7 Posts
Country: | @mironicus It is not possible to create an application fix (or set processor affinity) for other than an executable. And it is only considered as a workaround until tourettes or eabin finds a permanent fix for this...
__________________ Most wanted feature(s) in MP/TVE3: [TV Card priority when recording] |
| | |
| | #88 (permalink) |
| Portal Developer Join Date: Apr 2005 Location: Osnabruck
Posts: 2,667
Thanks: 116
Thanked 124 Times in 85 Posts
Country: | In d3dapp.cs -> public void BuildPresentParamsFromSettings(bool bwindowed) there is a property you might test: Code: presentParams.ForceNoMultiThreadedFlag = true; |
| | |
| | #89 (permalink) |
| Portal Developer Join Date: Jan 2005 Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts
|
__________________ http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" |
| | |
| | #90 (permalink) |
| Portal Developer Join Date: Jan 2005 Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts
| No ideas yet... so any help is still welcome ![]() ...it must be some timer / timestamp code that uses the old methods, but there seems to be none in the code, at least I havent find out...
__________________ http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" |
| | |
![]() |
| Bookmarks |
| Tags |
| enabled, evr, flickering, overlays, tvguide |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| my tv and my video support evr ? | sadivarol | MediaPortal 1 Talk | 1 | 2008-01-17 15:10 |
| Live TV in home screen only if time shift is enabled | Gump | MediaPortal 1 Talk | 8 | 2007-11-07 22:39 |
| Flickering when watching TV | Sven | General Support | 11 | 2007-10-17 11:14 |
| Video overlays | moiristo | Plugins | 0 | 2007-01-11 02:47 |
| Tv: If Timeshifting not enabled, pause (OSD) can enable-it. | esperado | Improvement Suggestions | 3 | 2005-07-27 16:01 |