Skip to content

Commit

Permalink
fix incorrect display of fps when dr kicks in
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Nov 15, 2014
1 parent 35527b7 commit 6aefeb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6aefeb6

Please sign in to comment.