From ee07b4b3ce520567d761eb0da7f1eceb3804cbda Mon Sep 17 00:00:00 2001 From: Faith Date: Thu, 31 May 2018 02:07:24 +0300 Subject: [PATCH] Reduce memory footprint by ~95% by reducing bitmap decode size --- Spectabis-WPF/Views/Library.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Spectabis-WPF/Views/Library.xaml.cs b/Spectabis-WPF/Views/Library.xaml.cs index f956b76..7c70357 100644 --- a/Spectabis-WPF/Views/Library.xaml.cs +++ b/Spectabis-WPF/Views/Library.xaml.cs @@ -410,6 +410,9 @@ private Image CreateBoxArtResource(string game) artSource.CacheOption = System.Windows.Media.Imaging.BitmapCacheOption.OnLoad; artSource.UriSource = new Uri(game + @"\art.jpg", UriKind.RelativeOrAbsolute); + artSource.DecodePixelHeight = 200; + artSource.DecodePixelWidth = 150; + //Closes the filestream artSource.EndInit();