MZ Plugin to Reduce All Tint Durations to One Frame

I made a plugin that reduces all flashes to 1 frame but I can't figure out how to do this with tints. If I could do this it would make my mobile deployments run super fast. Help! 😀
Moved to: Plugin Support

It might help if you show us what you did for flashes, and how you're trying to do it for tints.
Here is my flashes plugin:

(function () { var params = PluginManager.parameter = "JOE_RemoveFlashes.js"; Sprite_Animation.prototype.updateFlash = function() { if (this._flashDuration > 0) { //completely removes flash effects var d = this._flashDuration--; this._flashColor[3] *= (d - 1) / d; this._target.setBlendColor(this._flashColor); } }; })();
Well, a flash changes the screen, then changes it back again. A tint just changes the screen. You have to tell it to tint again if you want to change it back.

Other than that, the Tint Screen event command lets you specify how many frames you want it to take, so you can control whether it's a gradual tint or an immediate one.

If this doesn't help, you might have to explain a bit more to make it clear what's happening, and what you want to happen instead.
I want to reduce the duration of all tints so that the color transition happens in a single frame. I want to make a plugin that does this for me globally (on the entire game).

I would use this plugin for mobile deployments without having to take all of my tints off of my windows/mac versions of my game.
Are all your tints done by event commands?

I would either override the Game_Interpreter command??? method that changes tint, or the method that it calls, to ignore the 'duration' parameter that's passed in and use 0 instead. The Game_Interpreter method would be if ALL your tint changes are done by event command. The method that it calls would be if there is any other way that your tints get changed (like a plugin). Only do one, not both.
My friend helped me figure it out.

Code:
var _diableTints_Permanent = Game_Screen.prototype.startTint;
Game_Screen.prototype.startTint = function(tone, duration) {
    if (Familia.isMobile)
    {
        this._toneTarget = tone.clone();
        this._toneDuration = 0;
        if (this._toneDuration === 0) {
            this._tone = this._toneTarget.clone();
        }
    } else
        _diableTints_Permanent.call(this, tone, duration);
    
};

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-reduce-all-tint-durations-to-one-frame.136480/