Preloading Sound and Image

Does anyone have any method or working plugin to solve preloading on browser games, specifically when hosting on itch.io? i tried all existing.. but they dont work as they should.

Thank you
automatic preloader never work - they can't, and anyone who claims differently is wrong.

for a preloader to have any chance of working, you as the developer have to manually place the command to load something into an event with the correct timing.

and that requires you to understand how memory managements work.
automatic preloader never work - they can't, and anyone who claims differently is wrong.

for a preloader to have any chance of working, you as the developer have to manually place the command to load something into an event with the correct timing.

and that requires you to understand how memory managements work.
why do they work on PC? what is the command scrip to preload everything on a "stall" map

I'm thinking to show a picture image priority 99, then show picture erase all those pics found in picture folder every 1 wait frame.. is that even useful or possible?
why do they work on PC?
who said that they do?

RAM is always limited. It is absolutely impossible to load the entire game into RAM.
That means that the computer will automatically remove the files longest unused from RAM to make space for the next files to be used.
If a preloader plugin were to prevent that it would create a memory leak.

Otherwise, all files loaded on gamestart will be replaced rather shortly later. and from that time on those parts of any preloader will no longer have any function.

to prevent loading delay you as the developer has to tell the preloader "please load this file because I need it in about two seconds" - and the timing there is rather critical. If you give the command too late then the preloading is not complete by the time the game needs the file, and there will be a rest of a loading delay.
If you give the preload command too early on the other hand, the file will already be cycled and removed again before it is needed, forcing the engine to load it again then.
what is the command scrip to preload everything on a "stall" map
you usually cannot, not if the map is larger - as said above not everything fits into RAM.
and if you can, that command depends on the preload plugin and you need to follow its descriptions to learn what commands it uses. Because the whole point of the preload plugin is to give the engine those functions, they don't exist outside the preloader.
so i read you only need to use show picture once to add images to the cache.
i made a "loading map". what's the script command to show images in a specific folder?
like every 1 wait, it loads 1 picture. I think i need to show about 60 images in 60 frames.
once to add images to the cache.
yes, but once the cache is full the oldest picture gets deleted to make room for newer pictures.
yes, but once the cache is full the oldest picture gets deleted to make room for newer pictures.
Let's say my pictures folder is about 27mb, does using the Community Basic increasing Cache from 10 to 30 help in preloading?

I checked 3 preloading
MPP QuickStartUp
Galv ImageCacge
TM PreloadEx

they all just do the
Code:
Scene_Boot.loadSystemImages = function()

and inside is the
Code:
ImageManager.reserveSystem('filename');
Let's say my pictures folder is about 27mb, does using the Community Basic increasing Cache from 10 to 30 help in preloading?
not really.

first off, there is a difference between storage size and RAM/cache size. png files actually have a good compression, which means the filesize is a lot smaller than the data size. And you need uncompressed data to work with anything.

to understand what I'm talking about: copy your picture folder, then convert the pictures inside from png to bmp. BMP has absolutely no compression, so the filesize of the BMP is the size that is needed in RAM/Cache.
Prepared to be shocked when seeing the uncompressed numbers.

second, the cache is not only for show picture, it has to load every image from the tilesets to sprites to whatever. That is a lot more data and the reason why you can never run your entire game in memory/cache.

as I said above, the only way for a preloader to work is if you give the command to preload the image about two or three seconds before that image is needed. and for you to do that you'll need to be able to plan ahead what your player will do. For example by placing invisible events triggering the preload a few steps before the event that needs the image - which will only work if the map is mostly linear and the player can't approach from a different direction.

Original thread: https://forums.rpgmakerweb.com/threads/preloading-sound-and-image.150147/