Controlling the speed at which the message screen opens

To be clear, I'm not talking about the speed of the text inside the dialogue window, but the actual opening of window itself. It takes about, I dunno, 20 frames to open? I'd like to make it instant. Is there a way to do that?

(btw, wasn't sure if this should be in the javascript forum, because I don't know if there's a javascript way to do it.)

Thanks!
Code:
Window_Base.prototype.updateOpen = function() {
    if (this._opening) {
        this.openness += 32;
        if (this.isOpen()) {
            this._opening = false;
        }
    }
};

Window_Base.prototype.updateClose = function() {
    if (this._closing) {
        this.openness -= 32;
        if (this.isClosed()) {
            this._closing = false;
        }
    }
};

rpg_windows, line 117
change the value of openness
Like gstv87 says, it's openness that controls this. You can save the following as a .js file & import as a plugin:
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);
Just remove the second part if you want to keep the "closing" animation~ 🙏

(Got this as one feature of many in one of my released plugins in case anyone's interested: Cae_MenuDisplayOpts.js)
Wow, that was fast, thanks!

At first I did put it in a .js file and import, but then decided that I want to toggle it on and off sometimes, so I instead put it in an event that runs it as a script, and it works perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/controlling-the-speed-at-which-the-message-screen-opens.111398/