Addressing the Caching Problem

i took a few moments to revert my usage of the ImageManager.reserve and ImageManager.request functions back to ImageManager.load and explicitly pre-loaded the required assets for my plugins on system boot; the lag i had been experiencing is entirely gone and i understand the importance of pre-loading assets a little more now, so the idea of an official pre-loader is exciting.

i still know very little about these kinds of things, but what are the odds we could have some sort of UI for the pre-loader?
i took a few moments to revert my usage of the ImageManager.reserve and ImageManager.request functions back to ImageManager.load and explicitly pre-loaded the required assets for my plugins on system boot; the lag i had been experiencing is entirely gone and i understand the importance of pre-loading assets a little more now, so the idea of an official pre-loader is exciting.

i still know very little about these kinds of things, but what are the odds we could have some sort of UI for the pre-loader?
What do you mean by "UI" for the preloader?
What do you mean by "UI" for the preloader?
I think he means the HUD, or interface if using preloader functions inside the RPG Maker MV, instead of a plugin made for projects.
@Liquidize a file selection tool. a drag and drop window. something hands on that makes inclusion of assets convenient.
@Liquidize a file selection tool. a drag and drop window. something hands on that makes inclusion of assets convenient.
That wouldn't be very good if you mean to preload all of those listed assets on game start, now that would cause memory issues 😛. Preloading is done at set points in the game, like preloading the next maps assets while you're on the map before it, etc.
oh man! that is what i meant, haha. i have no idea what is going on! i think i am just going to mosey on over here...
That wouldn't be very good if you mean to preload all of those listed assets on game start, now that would cause memory issues 😛. Preloading is done at set points in the game, like preloading the next maps assets while you're on the map before it, etc.
Maybe the best idea is to implement preload options in some of the windows of RPG Maker MV, in order to preload resources in some cases.

For example, implement the option in the Map Properties, and then choose the resource files (including the ones from the events, tilesets, battle graphics like enemies or battlebacks...).

Or in the troops windows, too, to preload specific files inside a battle.

It is only an idea, but I think it has the basics for preload options, that can be expanded by plugins or other options inside the program.


Also, I'm not a programmer, so I don't know if this can be possible.
I preload things using PIXI. For sound I use this plugin https://github.com/pixijs/pixi-sound and for images I use normal PIXI. For some reason I haven't had problems with memory leaks yet. Maybe it's because these images don't get cleared from cache for some reason, at least according to console. Even when I type in "PIXI.TextureCache[filepath].destroy()", it still stays inside TextureCache. Only the image disappears from it, but the reference inside texture cache still stays.
I don't know if this is too old to comment on and still be relevant, but SRD's (SumRndmDde) preloader I have found to be the most helpful. You can pick what assets to be preloaded (my animations are huge, but audio is a non-issue for me), and choose only the larger ones that take too long to load, etc.

http://sumrndm.site/preloader-core/
Current preloader plugins have huge memory leaks, so they aren't the best choice even though they serve really well.
Current preloader plugins have huge memory leaks, so they aren't the best choice even though they serve really well.
noted

Original thread: https://forums.rpgmakerweb.com/threads/addressing-the-caching-problem.87840/