Skip to content

Commit

Permalink
added advancedsettings <disablemadvrlowlatency>
Browse files Browse the repository at this point in the history
  • Loading branch information
aracnoz committed May 25, 2017
1 parent e38cd6e commit 703c8f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/cores/DSPlayer/Filters/MadvrSharedRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ HRESULT CMadvrSharedRender::Render(DS_RENDER_LAYER layer)
m_kodiWait.Unlock();

// Return to madVR if we rendered something
return (m_bGuiVisible) ? CALLBACK_USER_INTERFACE : CALLBACK_INFO_DISPLAY;
if (m_bGuiVisible && !g_advancedSettings.m_bDisableMadvrLowLatency)
{
return CALLBACK_USER_INTERFACE;
}

return CALLBACK_INFO_DISPLAY;
}

void CMadvrSharedRender::BeginRender()
Expand Down
2 changes: 2 additions & 0 deletions xbmc/settings/AdvancedSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ void CAdvancedSettings::Initialize()
m_bDSPlayerFastChannelSwitching = true;
m_bDSPlayerUseUNCPathsForLiveTV = false;
m_bIgnoreSystemAppcommand = false;
m_bDisableMadvrLowLatency = false;
m_bNotWaitKodiRendering = false;
#endif

Expand Down Expand Up @@ -1208,6 +1209,7 @@ void CAdvancedSettings::ParseSettingsFile(const std::string &file)
XMLUtils::GetBoolean(pElement, "fastchannelswitching", m_bDSPlayerFastChannelSwitching);
XMLUtils::GetBoolean(pElement, "useuncpathsforlivetv", m_bDSPlayerUseUNCPathsForLiveTV);
XMLUtils::GetBoolean(pElement, "ignoresystemappcommand", m_bIgnoreSystemAppcommand);
XMLUtils::GetBoolean(pElement, "disablemadvrlowlatency", m_bDisableMadvrLowLatency);
XMLUtils::GetBoolean(pElement, "notwaitkodirendering", m_bNotWaitKodiRendering);
}
#endif
Expand Down
1 change: 1 addition & 0 deletions xbmc/settings/AdvancedSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ class CAdvancedSettings : public ISettingCallback, public ISettingsHandler
bool m_bDSPlayerFastChannelSwitching; // Live TV fast channel switching (don't stop timeshift), only for MediaPortal TV-Server and ArgusTV PVR backends
bool m_bDSPlayerUseUNCPathsForLiveTV; // Use UNC paths for Live TV, only for MediaPortal TV-Server and ArgusTV PVR backends
bool m_bIgnoreSystemAppcommand;
bool m_bDisableMadvrLowLatency;
bool m_bNotWaitKodiRendering; // default false, madVR for each processed frame will wait up to 100ms that kodi completes the rendering of the GUI, this could be useful in case of GUI flickering.
#endif

Expand Down

0 comments on commit 703c8f9

Please sign in to comment.