1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00

update precacher.txt, file is now in the repo, and speedup loading a little bit more on slow machines

This commit is contained in:
fgenesis 2023-06-01 12:58:00 +02:00
parent e5fad1e72e
commit 263bff3659
2 changed files with 45 additions and 4 deletions

View file

@ -673,9 +673,9 @@ static void loadBitForSoundCache()
{ {
if (soundsLoaded > 0 && soundsLoaded < soundsExpected) if (soundsLoaded > 0 && soundsLoaded < soundsExpected)
{ {
// Only update every 4 sounds so we don't waste too much // Only update every few sounds so we don't waste too much
// time waiting for vsync. // time waiting for vsync.
if (soundsLoaded % 4 == 0) if (soundsLoaded % 16 == 0)
{ {
loadBit(LOAD_SOUNDCACHE, loadBit(LOAD_SOUNDCACHE,
(float)soundsLoaded / soundsExpected); (float)soundsLoaded / soundsExpected);
@ -685,12 +685,12 @@ static void loadBitForSoundCache()
} }
static unsigned int texturesLoaded = 0; static unsigned int texturesLoaded = 0;
static const unsigned int texturesExpected = 652; static const unsigned int texturesExpected = 663;
static void loadBitForTexPrecache() static void loadBitForTexPrecache()
{ {
if (texturesLoaded > 0 && texturesLoaded < texturesExpected) if (texturesLoaded > 0 && texturesLoaded < texturesExpected)
{ {
if (texturesLoaded % 16 == 0) if (texturesLoaded % 32 == 0)
{ {
loadBit(LOAD_TEXTURES, loadBit(LOAD_TEXTURES,
(float)texturesLoaded / texturesExpected); (float)texturesLoaded / texturesExpected);

41
files/data/precache.txt Normal file
View file

@ -0,0 +1,41 @@
gui/*.png
gui/worldmap/*.png
gui/minimap/*.png
particles/*.png
naija/*.png
song/*.png
shots/*.png
ingredients/*.png
gems/*.png
collectibles/*.png
missingImage
menu
glow
shock-lines
gameover-0001
gameover-0002
gameover-0003
gameover-0004
bubble
font
manaballLines
manaballRing
glint
menu2
cursor
cursor-sing
cursor-swim
cursor-burst
cursor-look
Aquarian
fish-0002
damage
fader
mouse-leftbutton
mouse-rightbutton
mouse-middlebutton
mouse-body
water/water-line
areyousure
yes
no