From cb830b70ff3ef59cf9e611ec6318fcf2abbd60aa Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 21 Mar 2020 09:32:28 +0000 Subject: [PATCH] Launcher: add setting for texture-cache --- src/GUI/qml/Settings.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/GUI/qml/Settings.qml b/src/GUI/qml/Settings.qml index 15d25c748..c328835b1 100644 --- a/src/GUI/qml/Settings.qml +++ b/src/GUI/qml/Settings.qml @@ -450,6 +450,20 @@ Item { enabled: !renderSection.rembrandt property var data: [0, 2, 4]; defaultIndex: 0 + }, + + SettingCheckbox { + id: compressTextures + setting: "texture-compression" + keywords: ["texture", "compresseion", "memory", "dxt", "cache"] + // no option, since we need to set a property + advanced: true + + label: qsTr("Cache graphics for faster loading") + description: qsTr("By converting images used in rendering to an optimised format " + + "loading times and memory use can be improved. This will consume " + + "some disk space and take initial time while images are converted, " + + "but subsequent loads will be faster, and use less memory.") } ] @@ -465,6 +479,8 @@ Item { if (alsEnabled) { _config.setProperty("/sim/rendering/shaders/skydome", true); } + + _config.setProperty("/sim/rendering/texture-cache/cache-enabled", compressTextures.value); } }