MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » General Support


General Support Post problems you have when using MediaPortal, or pre installation questions in here.

Reply
 
Thread Tools Display Modes
Old 2008-04-24, 14:18   #81 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts


Default

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.
tourettes is online now   Reply With Quote
Old 2008-04-25, 09:50   #82 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts


Default

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"
tourettes is online now   Reply With Quote
Old 2008-04-25, 09:51   #83 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts


Default

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"
tourettes is online now   Reply With Quote
Old 2008-04-25, 13:21   #84 (permalink)
Portal Developer
 
Join Date: Sep 2006
Posts: 375
Thanks: 6
Thanked 25 Times in 17 Posts


Default

no IRC at work, sorry

edit: but i hope you find a solution soon
Eabin is offline   Reply With Quote
Old 2008-04-25, 16:11   #85 (permalink)
Portal Member
 
Join Date: Aug 2006
Location: Stockholm
Age: 37
Posts: 252
Thanks: 11
Thanked 7 Times in 7 Posts

Country:

My System

Default

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...
Attached Thumbnails
flickering-tv-guide-other-overlays-evr-enabled-mediaportal_compat.jpg  
Attached Files
File Type: zip mediaportal_compat.zip (486 Bytes, 17 views)
__________________
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...
pnyberg is online now   Reply With Quote
Old 2008-04-25, 20:38   #86 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 179
Thanks: 3
Thanked 0 Times in 0 Posts

My System

Default

@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.
mironicus is offline   Reply With Quote
Old 2008-04-26, 08:39   #87 (permalink)
Portal Member
 
Join Date: Aug 2006
Location: Stockholm
Age: 37
Posts: 252
Thanks: 11
Thanked 7 Times in 7 Posts

Country:

My System

Default

@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]
pnyberg is online now   Reply With Quote
Old 2008-04-26, 12:05   #88 (permalink)
rtv
Portal Developer
 
rtv's Avatar
 
Join Date: Apr 2005
Location: Osnabruck
Posts: 2,667
Thanks: 116
Thanked 124 Times in 85 Posts

Country:

My System

Default

Quote:
Originally Posted by mironicus View Post
Can the gui set to be "SingleProcAffinity" seperately? ^^
In d3dapp.cs -> public void BuildPresentParamsFromSettings(bool bwindowed)
there is a property you might test:
Code:
      presentParams.ForceNoMultiThreadedFlag = true;
Although I guess tourettes already did test that.
__________________
rtv is online now   Reply With Quote
Old 2008-04-26, 18:33   #89 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts


Default

Quote:
Originally Posted by rtv View Post
Although I guess tourettes already did test that.
Yep, tested that.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is online now   Reply With Quote
Old 2008-04-26, 18:35   #90 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,367
Thanks: 89
Thanked 108 Times in 89 Posts


Default

Quote:
Originally Posted by Eabin View Post
but i hope you find a solution soon
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"
tourettes is online now   Reply With Quote
Reply

Bookmarks

Tags
enabled, evr, flickering, overlays, tvguide

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT +1. The time now is 22:00.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden