[Bug] Dshowhelper don't use the good screen to compute freqs (1 Viewer)

technick

Portal Pro
May 6, 2009
566
155
Home Country
France France
Hi,

I have 2 screens, TV at 50 hz and touch screen at 60 hz but MP use the touch screen at 60hz to compute the video delays but I play indeed video on TV...

It perhaps explain stutters sometime ? Or perhaps just a bug in the shift+1 ? Strange...
 

technick

Portal Pro
May 6, 2009
566
155
Home Country
France France
It seem that MP not officially support multiple display ?


Win7RefreshRateHelper.cpp

// get display configuration
result = QueryDisplayConfig(QDC_ALL_PATHS,
&uNumPathArrayElements, pPathInfoArray,
&uNumModeInfoArrayElements, pModeInfoArray,
pCurrentTopologyId);
if (result == 0)
{
// Get information from first active target path
// TODO: add support for multiple displays (presenter doesn't know active display)
for(int i=0; i < (int)uNumPathArrayElements; i++)
{
if (pPathInfoArray.flags == DISPLAYCONFIG_PATH_ACTIVE)
{
DISPLAYCONFIG_PATH_TARGET_INFO target;
target = pPathInfoArray.targetInfo;
LONG numerator = target.refreshRate.Numerator;
LONG denominator = target.refreshRate.Denominator;
refreshRate = (double)numerator/(double)denominator;
break;
}
}
}
 

Owlsroost

Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Yes, basically it's designed to run with a single display.

    If you do use multiple displays they must run at the same refresh rate.

    I don't run Win 7, but also take a look at this thread - Dual Monitors Windows 7 Problems - particularly the Wednesday, April 07, 2010 12:31 PM post by Twizzlerite

    Tony
     

    technick

    Portal Pro
    May 6, 2009
    566
    155
    Home Country
    France France
    It's impossible to run a touch screen at 60hz fixed and a TV at 23/34/50/60 hz... Ok if you like divx but not on a full HD install ;-)

    I try yesterday to compil this code, I need to install more SDK but I will modify this to use the second screen if there is one on my personnal build. For me it's a very big bug.
     

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    51
    Berlin
    Home Country
    Germany Germany
    Will take care of this in the coming week. I post an updated DLL here for testing as I don't have multiple displays on my dev machine to test it myself, therefore we might need two or three iterations of testing.
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    technick - I don't know if it will help, but my modified dshowhelper dlls estimate the screen refresh rate directly, so they might be worth a quick try (pending scythe42 fixing the Win7RefreshRateHelper dll).

    Tony
     

    technick

    Portal Pro
    May 6, 2009
    566
    155
    Home Country
    France France
    Owlsroost

    I read this post sometime but I don't want install reclock and I understand you want work with it ;-)

    But for your information absolutely no problem with your dll (v0020) on TV SD HD / video 23/24/50... congratulations.
    (I use Dynamic Refresh rate and make difference between 24 and 23.976)

    View attachment 64246


    Scythe42

    No problem, all touch screen users will be interested.
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    @Owlsroost

    I read this post sometime but I don't want install reclock and I understand you want work with it ;-)

    You don't need ReClock installed....and good to know my dll helps :)

    Tony
     

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    51
    Berlin
    Home Country
    Germany Germany
    Please try this one and let me know if it works correct on Win7 now.

    Edit: Old patch removed
     

    Users who are viewing this thread

    Top Bottom