Issue #10: Improve thumbnail performance

This commit is contained in:
Jakub Melka
2022-02-05 19:20:05 +01:00
parent 8bf2913ded
commit 433c06a69a
2 changed files with 3 additions and 1 deletions

View File

@ -1329,7 +1329,7 @@ void PDFDrawWidgetProxy::updateRenderer(bool useOpenGL, const QSurfaceFormat& su
{
m_useOpenGL = useOpenGL;
m_surfaceFormat = surfaceFormat;
m_rasterizer->reset(useOpenGL, surfaceFormat);
m_rasterizer->reset(useOpenGL && ENABLE_OPENGL_FOR_THUMBNAILS, surfaceFormat);
}
void PDFDrawWidgetProxy::prefetchPages(PDFInteger pageIndex)

View File

@ -471,6 +471,8 @@ private:
constexpr inline T bound(T value) { return qBound(min, value, max); }
};
static constexpr bool ENABLE_OPENGL_FOR_THUMBNAILS = false;
/// Flag, disables the update
bool m_updateDisabled;