Skip to content

Commit

Permalink
MythRenderOpenGL: Re-enable flushing
Browse files Browse the repository at this point in the history
- this clearly causes presentation issues when the GPU cannot quite keep
up. Better to drop frames if necessary and highlight the performance
problem rather display video and overlays that are corrupted
  • Loading branch information
mark-kendall committed Oct 23, 2019
1 parent 38929f3 commit 16fc98c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions mythtv/libs/libmythui/mythrender_opengl.cpp
Expand Up @@ -191,7 +191,7 @@ MythRenderOpenGL::MythRenderOpenGL(const QSurfaceFormat& Format, QPaintDevice* D
m_cachedMatrixUniforms(),
m_cachedUniformLocations(),
m_vao(0),
m_flushEnabled(false),
m_flushEnabled(true),
m_openglDebugger(nullptr),
m_openGLDebuggerFilter(QOpenGLDebugMessage::InvalidType),
m_window(nullptr)
Expand Down Expand Up @@ -591,12 +591,6 @@ void MythRenderOpenGL::Release(void)
#endif
}

void MythRenderOpenGL::MoveResizeWindow(const QRect &rect)
{
if (m_window)
m_window->setGeometry(rect);
}

void MythRenderOpenGL::SetViewPort(const QRect &rect, bool viewportonly)
{
if (rect == m_viewport)
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/mythrender_opengl.h
Expand Up @@ -105,7 +105,6 @@ class MUI_PUBLIC MythRenderOpenGL : public QOpenGLContext, public QOpenGLFunctio
int GetExtraFeatures(void) const;
QOpenGLFunctions::OpenGLFeatures GetFeatures(void) const;
bool IsRecommendedRenderer(void);
void MoveResizeWindow(const QRect &rect);
void SetViewPort(const QRect &rect, bool viewportonly = false);
QRect GetViewPort(void) { return m_viewport; }
void PushTransformation(const UIEffects &fx, QPointF &center);
Expand Down

0 comments on commit 16fc98c

Please sign in to comment.