Irina's AntiAudioDelay & Galv's Image Cache (what's "cache"?)

So like many others I've come across issues where I'm experiencing terrible delay in both BGM, ME and even SE files being played. It's quite ridiculous actually to have footstep sounds lag ~2 seconds behind and I'd say it's unacceptable so I've been looking for a fix.

I've seen a lot of preload manger plugins but they all seems faulty, old and reading the more recent replies in those threads makes me not what to use any of those. I did find a Japanese(?) plugin that someone put up somewhere on this forum as well but that one, while it works, has some weird scratchy noises added to the BGM tracks. It's barely noticeable but still, I don't like that.

So after much searching I've decided to try with Irina's AntiAudioDelay plugin and Galv's ImageCache plugin.

Both of these plugins seems to try to prevent delays to happen by allowing the dev to set higher Cache limits. But... I know nothing of how cache works! How will this help? What's too high? What numbers would start show diminishing returns, etc? I'd be very happy if someone could explain this to me.

Below is a print screen from Irina's plugin in the plugin manager. the parameters were originally set to "10" as cache limit but I didn't notice any change so I just arbitrarily changed it to "30".
What that a good move? The way it's written it almost seem to imply that "1" cache = "1" BGM track, in which case I could just keep it at "10" since I don't have more songs than that in this game.
Spoiler: Screenshot of Irina's plugin:
rGrQ8eZ.png

And below here we have Galv's plugin and how it looks in the plugin manager. Apparently I can set image files to load into memory (cache?) So I did that too for some of my larger VN backgrounds and busts.
But I'm not sure how much this helps or how much extra strain it puts on the system? Is it wise to preload about seven 1280x720 background images with this plugin? Considering I've also set it up to preload all character busts and those character sheets are even larger due to multiple expressions (something like 2000x3000 for each file). Am I front loading too much? How much "cache" is this?
Spoiler: Screenshot of Galv's plugin:
YmpBzAW.png
TLDR; In a nutshell I've no idea what I'm doing with these plugins but I want to set them up right to maximize the gain and minimize any risks of front loading too much or causing memory leaks or what not. Please teach me.
for me irrina delay do nothing…
I don’t see a difference
but if you look for lesser delay audio
I would recommended you this


use google translate
and see it yourself if you satisfy with this method
Hi!
Did you try that one from Chaucer? ChaucerSceneStabilizer.js
I think this is the best one I ever see. It will preload images and sounds. Your audio will play well with this. Give it a try. I think you only have to rename the plugin when downloading it to Chau_SceneStabilizer v-7-0-3.js
Thanks for your suggestions. I'll be checking them out and I hope one of them will help. But I'm still interested in understanding a bit more of how "cache" and "cache limits" work in MV, if anyone sits on that information.

@Eliaquim
Hm, you say I have to rename it to "Chau_SceneStabilizer v-7-0-3" but the latest download says it's "Version 7.1.1 " on the download page ---> http://www.rosedale-studios.com/2020/01/31/scene-stabilizer/
Actually I don't know the real thing about cache
but when I do my owns code
I found out that I need to load my img once before show up window
unless it will not ready to show and go blank

but as you do a visual novel
show picture is already enough
you don't need to do anything with cache
unless you found out that it's not load properly
cache is more for a map that use
many complicate sprite animation tile parallax etc at the same time
if your game run smoothly don't need to bother to add those plugins in
it will make more problem than help
Well, the problem is my game does not run smoothly. I use Irina's VN bust plugins for displaying character sheets and they can get pretty large with multiple expressions. There's also a lot of loading big parallax images (backgrounds).

I'm actually using a pretty old laptop myself which might be part of the problem. But I imagine some of the players will try to play on equally ancient computers which is why I'd like to optimize the game so it runs smooth on my PC. Because then it'll probably run on most PC's out there.
@Eliaquim
Hm, you say I have to rename it to "Chau_SceneStabilizer v-7-0-3" but the latest download says it's "Version 7.1.1 " on the download page ---> http://www.rosedale-studios.com/2020/01/31/scene-stabilizer/

Yes I know, it's because the author forgets to change the version number, but the plugin is updated to version 7.1.1
Just the name that will have to put "Chau_SceneStabilizer v-7-0-3".

I know about the cache, but I don't know how to explain... I will find the thread where people explained it to me, just a moment xD

[EDIT] Check here!

But give I will give a try...

Imagine that Rpg Maker Mv is a person and has a backpack on his back and a closet at home. The things the mv uses most, he keeps in his backpack and other things he uses less often, he keeps in the closet.

That way whenever you need a file, if it’s already in your backpack, it picks up faster! In the closet, it takes longer to get ...

So, what else he uses, he leaves in his backpack (like the Window.png image). It is stored in the cache all the time because it is in constant use. The mv does this with other images too, when you upload a picture it puts it in the cache for faster access. But as you use other images, the cache starts to fill up (the backpack is full!) And the mv puts things that are not being used at the moment in the closet for not to leave the backpack heavy.

When you increase the cache limit with plugins, you increase the size of the backpack, making the MV get more resources faster. However, the backpack can weigh more until something is taken out of it and put back in the closet.

I hope I managed to explain, but honestly, I don't have much hope in my analogy hahahahaa ^^''

But if you plan to use an android or a lower PC, I think you should be fine using 30~50 MB in the cache limit.
Well, the problem is my game does not run smoothly. I use Irina's VN bust plugins for displaying character sheets and they can get pretty large with multiple expressions. There's also a lot of loading big parallax images (backgrounds).

I'm actually using a pretty old laptop myself which might be part of the problem. But I imagine some of the players will try to play on equally ancient computers which is why I'd like to optimize the game so it runs smooth on my PC. Because then it'll probably run on most PC's out there.
Well... another irrina plugin problem...
I buy that plugin too and end up don't use it...
I find out use only show picture is more comfort
(come back to point out it in youtube then comment section are close
feel very sorry for other that buy it after me...)

here are something that you can try
any img that already load once will be in memory
so maybe you can load every vn bust that you use in that map once
before fadein in the first time
and look for the outcome if it help
(I call this a manual preload may be put a wait before fadein too
so it have some time to load those img)
@Eliaquim
Thanks for the explanation.

I did try that plugin you suggested but it actually made it worse, by A LOT. Loading the first map. This map contains nothing but a one screen sized map, static parallax 1280x720 a show text+choice and the BGM. I admit the BGM could be a wee bit heavy but still, it took me 2 minutes(!) to load it. And while it got a bit faster next time I returned to the map it was still slower than without the plugin. I dunno. That plugin doesn't seem compatible with my game or PC which is a shame because I was very hopeful. 😢

This game will not be ported to iOS or android but I would like people with "crappy laptops" (like the one I'm using) to also be able to play it.

@pasunna
I actually like Irina's VN bust plugin. I don't like her card game plugin (which felt like wasted money), but the VN plugin has a lot of nice features and I do think the problem with the lag I'm experiencing is 95% MV's fault.

Sure, my BGM's are ~7MB (twice the size of the RTP BGM's) but still. All I'm trying to achieve is a portrait and message window over a backdrop, with a slightly large BGM file. The non-programmer in me still thinks this should be cakewalk for any modern game engine.

I will try the manual front loading you suggested though. Loading pictures with zero opacity and SFX with 0 volume might work. Although I wonder how much graphics and audio MV keeps in memory before it starts dumping?
Parallax Panda
I don't think... sfx will work... never try it
did sfx ever delay?
I only find bgm lag
if your file is 7mb you better compress it
even in AAA game there are a load time between scene for preload their img and sound
but mv mean to make indie game
so they not provide preload and just load and play

and yes irrina vn feature is cool
that's why I buy it
but it comes up with many problems...
(mostly performance and compatible)
and after a long run
I find out the feature make it more complicate than it need
I can do it with built-in show move picture
don't need to setting here and there remember text code etc
just make
A_smile
A_angry
A_sad
now I can choose the emotion with preview img
instead of setting 4x10 and set the anchor, emotion etc
and deal with massive file size preload problem...

but... yes I admit that I'm a bit bias
it's your choice to use her plugin anyway
@Parallax Panda wowww!! I can't believe it =O
In my pc it made all run more smooth than ever 😳
In fact, maybe this has something to do with the plugin feature... It loads everything that the map needs before the map starts. In exchange of a smooth gameplay he adds more loading time. So maybe that's it. But my pc is a good one and maybe I didnt notice this.

But with a bgm with 7Mb is to big. You really will need a plugin that preloads this bgm if you want to play in a lower end pc. But this also means that in some point the game will have to load this bgm(to make it preloaded) and so, if there is a lot, then it will cost a loading time too. Well that is what I presume.

Also, for the images, do you used tiny png to compress them?

@pasunna fell sorry for you with your bad experience with the buy 🙁
I'm not sure how to compress sound files though. If I knew how to do it and was a bit more of an audiophile I might be able to find a good sweet spot between size and quality loss.

I'm actually using music from [this] DLC, and the .ogg files in there are, well, 6~8mb in size. It's not exactly what this topic is about but If anyone has good tips for how to compress the file size without screwing up the sound to a noticeable level, I'd be more than willing to lend an ear. But keep in mind I do not own any fancy music or audio software, nor do I have any expertise in the field.

@pasunna
Yes, a simple SE of footsteps did lag initially (about 1-2 seconds). Why that happened is a mystery to me, but I can only assume other aspects of the scene was heavy and dragged everything down.

Hm, well if you had any specific issues or bugs with the VN bust plugin from Irina, do let me know as I'm using it in several projects. And while it's generally working fine for me. I'd like to be able to know as much as possible about the tools I'm using so that I can avoid unnecessary problems if there are any.

I do get that it's a simpler process to just display images but since I'm basically making an VN/RPG hybrid I feel like I'm actually saving time in the long run by setting up all those anchors (and other settings). Most "complex" script call combinations that needs to be reused I just copy paste anyway so after I've set it up once, it's (somewhat) smooth sailing.

@Eliaquim
I use an old HP office laptop without a dedicated graphics card. Yeah, it doesn't even have a graphics card. Instead it has some sort of cheap built in "video card" solution onto it's motherboard (I think).
This PC wasn't even very good when I first got it and I think I got it some 6... maybe even 7(?), years ago so, well, it's a crap computer to be fair. Truth be, I can't play many of the even simplest indie games on it without lag and weird glitches. It's probably mostly because it lacks that "graphics card".

I wouldn't mind to front load some stuff if that helped but it's an balancing act and like I said, no pre-loading plugins I've seen seems to be without fault.

As for the images, I'm not using TinyPNG actually since I think the image loss is visible but my images are far smaller than my BGM files. Even if they are large (in pixels) I just noticed that they're relatively small in size:

Background parallaxes average at about 1MB
Character Bust Sheets averages about 500kb or less.

I'm not super informed about what RM can handle but that doesn't seem so big too me?
About compress try Audacity it's a freeware
there are tutorial on YouTube about compress I think
basically I use adobe
Because I buy it by my job require...

About lossless format
I'm not a high-end listener(barely notice by my common ear)
So... I just compress it small as much as it can
as long as it help my game less size and lag that's good
I remember using Audacity to record essays at Uni, many years ago. I'd have to look into it again though since I can't say I remember how to use it.

I think I've managed to erase most of the lag through the combination of various plugins, playing all SE through "move routes" with "wait for" checked, as well as manually pre-loading some assets at the start of the scenes (as suggested).

I'll also look into compressing the BGM files too, and hopefully, that'll erase the remaining delays.

Thanks for all the help! 😂

Original thread: https://forums.rpgmakerweb.com/threads/irinas-antiaudiodelay-galvs-image-cache-whats-cache.120379/