Permalink
Browse files

rendermanager: fix stuttering in non full-screen mode, squash to add …

…buffering
  • Loading branch information...
1 parent c9c5fb6 commit 4628c9f44582a9485c560f0bacb7d801732ecded @FernetMenta committed Oct 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/cores/VideoRenderers/RenderManager.cpp
@@ -1057,8 +1057,9 @@ void CXBMCRenderManager::PrepareNextRender()
presenttime = clocktime + MAXPRESENTDELAY;
m_sleeptime = presenttime - clocktime;
+ double frametime = 1 / g_graphicsContext.GetFPS();
- if (g_graphicsContext.IsFullScreenVideo() || presenttime <= clocktime+0.01)
+ if (g_graphicsContext.IsFullScreenVideo() || presenttime <= clocktime + frametime)
{
m_presentPts = m_renderBuffers[idx].pts;
m_presenttime = presenttime;

0 comments on commit 4628c9f

Please sign in to comment.