diff --git a/CHANGELOG.md b/CHANGELOG.md
index 07a0c9e3..7693273b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
+### Fixed
+
+- Few optimizations with texture loading to improve memory usage
+
## [0.25.1] - 2024-08-03
### Added
diff --git a/playlet-app/src/components/LoadingIndicator/LoadingIndicator.bs b/playlet-app/src/components/LoadingIndicator/LoadingIndicator.bs
index 860d7fd4..356a2d60 100644
--- a/playlet-app/src/components/LoadingIndicator/LoadingIndicator.bs
+++ b/playlet-app/src/components/LoadingIndicator/LoadingIndicator.bs
@@ -1,10 +1,14 @@
function Init()
m.busySpinner = m.top.findNode("busySpinner")
- m.busyspinner.poster.width = 150
- m.busyspinner.poster.height = 150
+ poster = m.busyspinner.poster
+ poster.width = 150
+ poster.height = 150
+ poster.loadWidth = 150
+ poster.loadHeight = 150
+ poster.loadDisplayMode = "limitSize"
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
- m.busyspinner.poster.observeField("loadStatus", "PositionSpinner")
- m.busySpinner.poster.uri = "pkg:/images/spinner.png"
+ poster.observeField("loadStatus", "PositionSpinner")
+ poster.uri = "pkg:/images/spinner.png"
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
m.top.observeField("visible", "OnVisibleChange")
end function
diff --git a/playlet-lib/src/components/ChannelView/ChannelView.xml b/playlet-lib/src/components/ChannelView/ChannelView.xml
index 1ce40e90..d37ae070 100644
--- a/playlet-lib/src/components/ChannelView/ChannelView.xml
+++ b/playlet-lib/src/components/ChannelView/ChannelView.xml
@@ -17,6 +17,9 @@
diff --git a/playlet-lib/src/components/QrCodePoster/QrCodePoster.bs b/playlet-lib/src/components/QrCodePoster/QrCodePoster.bs
index 71e067b4..87d3d160 100644
--- a/playlet-lib/src/components/QrCodePoster/QrCodePoster.bs
+++ b/playlet-lib/src/components/QrCodePoster/QrCodePoster.bs
@@ -6,21 +6,23 @@ import "pkg:/source/utils/Types.bs"
function Init()
m.busySpinner = m.top.findNode("busySpinner")
m.busySpinnerPoster = m.busySpinner.poster
-
- m.busySpinnerPoster.uri = "pkg:/images/spinner.png"
+ m.busySpinnerPoster.loadDisplayMode = "limitSize"
m.top.observeField("width", FuncName(OnSizeChange))
m.top.observeField("height", FuncName(OnSizeChange))
OnSizeChange()
+
+ m.busySpinnerPoster.uri = "pkg:/images/spinner.png"
end function
function OnSizeChange()
- width = m.top.width
- height = m.top.height
-
- m.busySpinnerPoster.width = width / 2
- m.busySpinnerPoster.height = height / 2
- m.busySpinner.translation = [width / 4, height / 4]
+ spinnerWidth = m.top.width / 2
+ spinnerHeight = m.top.height / 2
+ m.busySpinnerPoster.width = spinnerWidth
+ m.busySpinnerPoster.height = spinnerHeight
+ m.busySpinnerPoster.loadWidth = spinnerWidth
+ m.busySpinnerPoster.loadHeight = spinnerHeight
+ m.busySpinner.translation = [spinnerWidth / 2, spinnerHeight / 2]
end function
function OnTextChange() as void