Dynamic refresh rate under Windows 10 (I've an Amd video card) (1 Viewer)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Here we go for the installer :)
    MP1 -- MP1-4669-BUG-Adding_better_detection_of_monitor_name_EDID complete!
    http://tinyurl.com/q4uyexu

    This time we have a new option (i would prefer to avoid it but sometimes, the first item is not always the primary, so i decide to force it).
    When debugging, i notice that in rare case the screen selected on MP side can be the wrong one, so i change it and hope it's ok now.

    So to summarize :

    1- We can tell MP to always start on default primary screen.
    2- Set MP to always stay in fullscreen and then don't handle the eventual Windows message when screen goes off and on (that part of code didn't change from previous version)
    3- Fix the wrong monitor that can be selected if no device id was detected (rare case).

    Enjoy :)
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    @Sebastiii note that I checked the new option but I left marantz-AVR item in the start screen lookup.

    MP start on Asus , right, but the splash screen is displayed on the tv plasma connected to the Marantz Avr (extended), wrong :eek:

    It's a bug,that I've intentionally tested, I'm sorry... :)

     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Yep :) i have fixed it too :)
    I notice it that splashscreen use is own screendetection too, i didn't make a new installer but i can do it for tomorrow :)
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    Ops! :(

    Code:
    [2015-10-04 13:05:44,195] [Log    ] [MPMain   ] [DEBUG] - MediaInfoWrapper.MediaInfoWrapper: Closing file : D:\Media\Film\Mad Max Fury Road\Mad Max Fury Road [ita][1080p].mkv
    [2015-10-04 13:05:44,198] [Log    ] [MPMain   ] [INFO ] - RefreshRateChanger.AdaptRefreshRate: framerate on file D:\Media\Film\Mad Max Fury Road\Mad Max Fury Road [ita][1080p].mkv is 23,976
    [2015-10-04 13:05:44,200] [Log    ] [MPMain   ] [INFO ] - RefreshRateChanger.SetRefreshRateBasedOnFPS: current refreshrate is 50hz - changing it to 23hz
    [2015-10-04 13:05:44,203] [Log    ] [MPMain   ] [INFO ] - RefreshRateChanger.SetRefreshRateBasedOnFPS: using internal win32 method for changing refreshrate. current is 50hz, desired is 23
    [2015-10-04 13:05:44,206] [Log    ] [MPMain   ] [INFO ] - RefreshRateChanger AdapterOrdinal value is 0
    [2015-10-04 13:05:44,209] [Log    ] [MPMain   ] [DEBUG] - CycleRefreshRate: Current MonitorIndex : 0 and current deviceName : \\.\DISPLAY2
    [2015-10-04 13:05:44,211] [Log    ] [MPMain   ] [DEBUG] - CycleRefreshRate: return new detected MonitorIndex : 1
    [2015-10-04 13:05:44,214] [Log    ] [MPMain   ] [DEBUG] - CycleRefreshRate: New MonitorIndex : 1 based on current deviceName : \\.\DISPLAY2
    [2015-10-04 13:05:44,489] [Log    ] [MPMain   ] [INFO ] - CycleRefreshRate: result DISP_CHANGE_SUCCESSFUL for refresh rate change 23Hz
    [2015-10-04 13:05:44,489] [Log    ] [MPMain   ] [INFO ] - g_Player.Play(D:\Media\Film\Mad Max Fury Road\Mad Max Fury Road [ita][1080p].mkv Video)

    There are several start e stop . the usual issue related to thread was fired at last , circa 13:05:40-44 timestamp

    The options selected were these, the primary monitor when the MP start wasn't ASUS but the other one, the primary screen when MP was started (Marantz-AVR/Plasma tv)

     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    You can higher the MP configuration and we can see what screen are Yes or No (for primary).
    But i'm not sure to understand you.

    You mean MP should start on Primary screen but it start to the non-primary screen ?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    From log it seems to start to the correct one :
    Display: \\.\DISPLAY2 - IsPrimary: True

    Splashscreen too :
    [2015-10-04 12:57:24,688] [Log ] [SplashScreen] [INFO ] - SplashScreen: Splash screen is using screen: \\.\DISPLAY2 (Position: 0,0 Dimensions: 1920x1080)

    But you run into :
    [2015-10-04 13:05:59,802] [Log ] [MPMain ] [ERROR] - Exception: Errore dell'applicazione.
    -2005530520 (D3DERR_DEVICELOST)
    in Microsoft.DirectX.Direct3D.Manager.GetAdapterDisplayMode(Int32 adapter)
    in MediaPortal.Player.RefreshRateChanger.SetRefreshRateBasedOnFPS(Double fps, String strFile, MediaType type)
    in MediaPortal.Player.RefreshRateChanger.AdaptRefreshRate()
    in MediaPortal.Player.g_Player.OnStopped()

    And MP doesn't like it :( and i didn't succeed to a proper recover (need mp to restart).

    So here is seems that Windows disconnect monitor or re-detected it or maybe the non primary screen was set briefly to primary because screen was disconnected :(.

    Not sure if we can do something about it.
     

    Users who are viewing this thread

    Top Bottom