MV Galv image bust flickering.

Whenever I use this plugin to add busts they will randomly show for a 1/4th of a second, disappear, then appear again. At first I thought it could be yanfly's message core, but disabling that does nothing. Next I thought it could be image cache, so I used an image cache addon to load all the busts first, still no luck. Along the same lines I did it manually by having showing each bust as a picture while the screen is fading in, but no luck. So I'm stumped as to what could cause it. I've searched through almost every thread on the forum with galv image bust as a tag / search term and the only thing that I've found that might be causing it (even though it was in an unrelated thread) was that the display of the bust is tied to the opening and closing of the message window.

What I'm guessing is happening is that it's showing the image for a second before the message window actually opens for some reason, then showing again when it's open, so I need to find a way around this.

Here is the plugin in question: https://galvs-scripts.com/2015/11/01/mv-message-busts/

Edit: I found the solution. If you save this code as a plugin it will make the messages instant, and it fixes the problem:


Code:
// Instant open
(function(alias) {
  Window_Base.prototype.open = function() {
    alias.call(this);
    this._openness = 255;
  };
})(Window_Base.prototype.open);

// Instant close
(function(alias) {
  Window_Base.prototype.close = function() {
    alias.call(this);
    this._openness = 0;
  };
})(Window_Base.prototype.close);
so I used an image cache addon to load all the busts first,
all preloaders and cache programs are limited by RAM, nothing can change that.
so loading too much or too early will result in the garbage collector removing excess data from RAM, making those programs useless.
they can only work if you make them load specific files just at the right time before those files are needed - too early and the file will be removed from RAM before it is used, too late and you still have loading delay.

What I'm guessing is happening is that it's showing the image for a second before the message window actually opens for some reason, then showing again when it's open, so I need to find a way around this.
that is a guess, and to confirm or deny it we will need more info from you - especially since Galv is one of the better programmers and this is the first time something like this is mentioned iirc.
So it is most likely a bad interaction in your project, and we need a screenshot of one of the events where this happens, as well as screenshots of your entire plugin manager with all plugins and their order to find possible conflicts.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/galv-image-bust-flickering.146960/