From 644c3c0c248bb654950c702a4e64e6cfe8922a60 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 8 Jul 2018 23:34:30 -0700 Subject: [PATCH] Cache app grid items to smooth out jank during scrolling and resizing --- app/gui/AppView.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/gui/AppView.qml b/app/gui/AppView.qml index 9a9fb657..1140c34a 100644 --- a/app/gui/AppView.qml +++ b/app/gui/AppView.qml @@ -18,6 +18,10 @@ GridView { cellWidth: 225; cellHeight: 350; focus: true + // Cache delegates for 1000px in both directions to improve + // scrolling and resizing performance + cacheBuffer: 1000 + // The StackView will trigger a visibility change when // we're pushed onto it, causing our onVisibleChanged // routine to run, but only if we start as invisible