aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSong.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-20 15:29:48 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-20 15:29:48 +0000
commit34988301a511ca8552a954c231fafde007cb94a1 (patch)
treec3c4f520a33301ca081999e4d80016704e1226fc /Game/Code/Screens/UScreenSong.pas
parent6a7518ffc93647ec4da4ed151186b858a271626b (diff)
downloadusdx-34988301a511ca8552a954c231fafde007cb94a1.tar.gz
usdx-34988301a511ca8552a954c231fafde007cb94a1.tar.xz
usdx-34988301a511ca8552a954c231fafde007cb94a1.zip
Some Memory tweaking (13 MB Less Ram using at 800 Songs)
Some Loading Time tweaking (From 8 Secs to 6 Secs on my Computer) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@123 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenSong.pas')
-rw-r--r--Game/Code/Screens/UScreenSong.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas
index 7c8447ee..79a5abb1 100644
--- a/Game/Code/Screens/UScreenSong.pas
+++ b/Game/Code/Screens/UScreenSong.pas
@@ -634,6 +634,9 @@ begin
// Song List
// Songs.LoadSongList; // moved to the UltraStar unit
CatSongs.Refresh;
+
+ //Set Length of Button Array one Time Instead of one time for every Song
+ SetButtonLength(Length(CatSongs.Song));
for Pet := 0 to High(CatSongs.Song) do begin // creating all buttons
// new
Texture.Limit := 512;// 256 0.4.2 value, 512 in 0.5.0