aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Arrskog <topfs2@xbmc.org>2014-11-16 06:22:41 +0100
committerTobias Arrskog <topfs2@xbmc.org>2014-11-16 06:22:41 +0100
commit2cd94380e3fe59003ffe7938dd3afa34ea10a5c6 (patch)
tree0586099db6f39a80328be223f7b88f7b81f28255
parentb3c20a2a7565669a2eb60c3050236156c1c91687 (diff)
parent6aefeb65094e033fc18772027b5409296174dd56 (diff)
Merge pull request #5732 from FernetMenta/dr
fix incorrect display of fps when dr kicks in
-rw-r--r--xbmc/Application.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index 48fa09b34f..415e4c267d 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -2326,10 +2326,11 @@ void CApplication::Render()
if (frameTime < singleFrameTime)
Sleep(singleFrameTime - frameTime);
}
- m_lastFrameTime = XbmcThreads::SystemClockMillis();
if (flip)
g_graphicsContext.Flip(dirtyRegions);
+
+ m_lastFrameTime = XbmcThreads::SystemClockMillis();
CTimeUtils::UpdateFrameTime(flip);
g_renderManager.UpdateResolution();